Suppress notices while loading config. fixes #6933 see #7087

git-svn-id: http://svn.automattic.com/wordpress/trunk@8070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-06-11 17:27:28 +00:00
parent 6adcab8b27
commit 2787d1fde5
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@
/** Define ABSPATH as this files directory */
define( 'ABSPATH', dirname(__FILE__) . '/' );
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
if ( file_exists( ABSPATH . 'wp-config.php') ) {
/** The config file resides in ABSPATH */