mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
Update error_reporting configuration for newer version of PHP. Fixes #8701 for 2.7.x props jacobsantos
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7874a85f1c
commit
46178887a8
@ -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);
|
||||
}
|
||||
|
||||
// For an advanced caching plugin to use, static because you would only want one
|
||||
|
Loading…
Reference in New Issue
Block a user