Created
April 3, 2013 18:01
-
-
Save stephenharris/5303608 to your computer and use it in GitHub Desktop.
Who killed WordPress? Useful for when you're get rogue 'Are you sure messages?' Not for production folks...
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 who_killed_me( $handler ){ | |
print_r( wp_debug_backtrace_summary() ); | |
return $handler; | |
} | |
add_filter( 'wp_die_handler', 'who_killed_me' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment