mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Update error_reporting configuration for newer version of PHP. Fixes #8701 props jacobsantos
git-svn-id: http://svn.automattic.com/wordpress/trunk@10405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c5a66fc563
commit
0c9e106ccc
@ -201,7 +201,12 @@ timer_start();
|
|||||||
if (defined('WP_DEBUG') and WP_DEBUG == true) {
|
if (defined('WP_DEBUG') and WP_DEBUG == true) {
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
} else {
|
} 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.
|
// When this is defined and set to true the non-minified versions of the Javascripts will be used.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user