Created
March 22, 2016 07:10
-
-
Save BronsonQuick/62589e4ea2b273e985a0 to your computer and use it in GitHub Desktop.
Better backtracing to fix dodgy themes and plugins. Pop this into mu-plugins
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 | |
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