Error reporting fixes. Props Denis-de-Bernardy, jacobsantos. fixes #9639 #8701

git-svn-id: https://develop.svn.wordpress.org/trunk@11128 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-04-29 20:18:44 +00:00
parent bd58cf3efc
commit b10853d492
2 changed files with 7 additions and 7 deletions

View File

@@ -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') ) {