From 53a1416c34a7926c808bb0ca444fae1f0763bf3e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 17 May 2013 20:44:54 +0000 Subject: [PATCH] When WP_DEBUG, set PHP error_reporting level to E_ALL. This will include E_DEPRECATED in PHP 5.3, and E_STRICT in PHP 5.4. fixes #24357. git-svn-id: https://develop.svn.wordpress.org/trunk@24288 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/load.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 55bb6dfac8..0596b0cfb6 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -258,12 +258,7 @@ function timer_stop( $display = 0, $precision = 3 ) { // if called like timer_st */ function wp_debug_mode() { if ( WP_DEBUG ) { - // E_DEPRECATED is a core PHP constant in PHP 5.3. Don't define this yourself. - // The two statements are equivalent, just one is for 5.3+ and for less than 5.3. - if ( defined( 'E_DEPRECATED' ) ) - error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT ); - else - error_reporting( E_ALL ); + error_reporting( E_ALL ); if ( WP_DEBUG_DISPLAY ) ini_set( 'display_errors', 1 );