git-svn-id: https://develop.svn.wordpress.org/trunk@11128 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bd58cf3efc
commit
b10853d492
@ -19,7 +19,10 @@
|
||||
/** Define ABSPATH as this files directory */
|
||||
define( 'ABSPATH', dirname(__FILE__) . '/' );
|
||||
|
||||
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
|
||||
if ( defined('E_RECOVERABLE_ERROR') )
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
|
||||
else
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
|
||||
|
||||
if ( file_exists( ABSPATH . 'wp-config.php') ) {
|
||||
|
||||
|
@ -201,13 +201,10 @@ timer_start();
|
||||
if (defined('WP_DEBUG') and WP_DEBUG == true) {
|
||||
error_reporting(E_ALL);
|
||||
} else {
|
||||
// Unicode Extension is in PHP 6.0 only or do version check when this changes.
|
||||
if ( function_exists('unicode_decode') )
|
||||
error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT );
|
||||
else if ( defined( 'E_DEPRECATED' ) ) // Introduced in PHP 5.3
|
||||
error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE );
|
||||
if ( defined('E_RECOVERABLE_ERROR') )
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
|
||||
else
|
||||
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
|
||||
}
|
||||
|
||||
// For an advanced caching plugin to use, static because you would only want one
|
||||
|
Loading…
x
Reference in New Issue
Block a user