From e0ab3314adb152e4c7a18685d392484d3fbb5f10 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 22 Jan 2009 20:44:06 +0000 Subject: [PATCH] Update error_reporting configuration for newer version of PHP. Fixes #8701 props jacobsantos git-svn-id: https://develop.svn.wordpress.org/trunk@10405 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index dcaddda224..168d2f7e82 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -201,7 +201,12 @@ timer_start(); if (defined('WP_DEBUG') and WP_DEBUG == true) { error_reporting(E_ALL); } else { - error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE); + if ( defined( 'E_DEPRECATED' ) ) + error_reporting(E_ALL ^ E_STRICT ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE); + else if ( defined( 'E_STRICT' ) ) + error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE ^ E_USER_NOTICE); + else + error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE); } // When this is defined and set to true the non-minified versions of the Javascripts will be used.