Skip to content

Instantly share code, notes, and snippets.

@BronsonQuick
Created March 22, 2016 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BronsonQuick/62589e4ea2b273e985a0 to your computer and use it in GitHub Desktop.
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
<?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