From 9a4be393eca52bcf2d0b24422efba76aa161b8ad Mon Sep 17 00:00:00 2001 From: dd32 Date: Thu, 5 Jan 2012 07:43:40 +0000 Subject: [PATCH] Revert Debug cruft from [19679], See #19249 git-svn-id: http://svn.automattic.com/wordpress/trunk@19681 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index f8995df7c..61dab0e35 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -260,10 +260,10 @@ 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 | E_DEPRECATED | E_STRICT ); + if ( defined( 'E_DEPRECATED' ) ) + error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT ); + else + error_reporting( E_ALL ); if ( WP_DEBUG_DISPLAY ) ini_set( 'display_errors', 1 );