Download and add FirePHPCore directory in a lib directory - https://github.com/firephp/firephp-core/tree/master/lib/FirePHPCore
Install and activate FirePHP extension in Firefox or FirePHP4Chrome for Chrome.
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "." | |
sass_dir = "sass" | |
images_dir = "images" | |
javascripts_dir = "js" | |
# To enable sourcemap output, set this to true |
Download and add FirePHPCore directory in a lib directory - https://github.com/firephp/firephp-core/tree/master/lib/FirePHPCore
Install and activate FirePHP extension in Firefox or FirePHP4Chrome for Chrome.
{ | |
"browser" : "chrome" | |
} |
Code
-[ ] Removed debugging code (error_log, console.log, var_dump, dbgx_trace_var)
git config --global user.email | |
git config --global user.email "username@users.noreply.github.com" | |
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_EMAIL" = "email@example.com" ]; | |
then | |
GIT_AUTHOR_NAME="username"; | |
GIT_AUTHOR_EMAIL="username@users.noreply.github.com"; | |
git commit-tree "$@"; |
/** | |
* Remove customizer links from the Admin Toolbar and dashboard by changing the body class back to 'no-customize-support' | |
*/ | |
function pmc_remove_customize_support() { | |
// Copied from wp_customize_support_script() in wp-includes/theme.php | |
?> | |
<script type="text/javascript"> | |
(function() { | |
var b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)'); | |
b[c] = b[c].replace( rcs, ' ' ); |
Thumbs.db | |
.DS_Store | |
*.orig | |
node_modules | |
.npm-debug.log |
Since WordPress 4.5, you can add the inline JavaScript using the wp_add_inline_script()
function. This can be used instead of echoing inline scripts using wp_footer
. The first argument is the handle of a registered script, in this case 'pretty-photo'.
function add_styles_scripts(){
// Add script in the footer
wp_enqueue_script('pretty-photo', get_stylesheet_directory_uri() . '/.../jquery.prettyPhoto.js',
array('jquery'), NULL, true);