Created
July 1, 2014 06:18
-
-
Save BronsonQuick/1bb286eab8e3da2de7b1 to your computer and use it in GitHub Desktop.
Better backtracing in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Better backtracing to fix dodgy themes and plugins. Pop this into mu-plugins | |
*/ | |
function sennza_backtrace() { | |
echo implode( '<br>', explode( ',', wp_debug_backtrace_summary( null, 4 ) ) ); | |
}; | |
add_action( 'deprecated_function_run', 'sennza_backtrace' ); | |
add_action( 'deprecated_argument_run', 'sennza_backtrace' ); | |
add_action( 'doing_it_wrong_run', 'sennza_backtrace' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment