-
-
Save INDIAN2020/9f569e8ede4760a515f16964243316c1 to your computer and use it in GitHub Desktop.
WP Debugging Insert this into wp-config.php to enable a more diversified debugging of 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 | |
| define( 'WP_DEBUG', false ); | |
| define( 'WP_DEVELOPMENT_MODE', false ); | |
| 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 { | |
| if( WP_DEVELOPMENT_MODE ) { | |
| define( 'WP_DEBUG_DISPLAY', true ); | |
| @ini_set( 'display_errors', 1 ); | |
| } else { | |
| define( 'WP_DEBUG_DISPLAY', false ); | |
| @ini_set( 'display_errors', 0 ); | |
| } | |
| } | |
| } else { | |
| define ('JETPACK_DEV_DEBUG', false ); | |
| @ini_set( 'display_errors', 0 ); | |
| define( 'WP_DEBUG_DISPLAY', false ); | |
| define( 'WP_DEBUG_LOG', false ); | |
| define( 'SCRIPT_DEBUG', false ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment