Created
October 16, 2015 04:05
-
-
Save phillcoxon/799327a9b392555c9cc8 to your computer and use it in GitHub Desktop.
WordPress debug script (put in wp-config.php)
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
| define( 'WP_DEBUG', true ); | |
| if ( WP_DEBUG ) { | |
| define ('JETPACK_DEV_DEBUG', true ); | |
| define( 'WP_DEBUG_LOG', true ); | |
| define( 'SCRIPT_DEBUG', true ); | |
| if ( defined( 'DOING_AJAX' ) && DOING_AJAX || defined( 'DOING_CRON' ) && DOING_CRON ) { | |
| define( 'WP_DEBUG_DISPLAY', false ); | |
| @ini_set( 'display_errors', 0 ); | |
| } else { | |
| define( 'WP_DEBUG_DISPLAY', true ); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://webdevstudios.com/2015/10/15/debugging-wordpress-tips-snippets/