From 2787d1fde555b86cc36adbfcabdb1bb6e53a0c26 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 11 Jun 2008 17:27:28 +0000 Subject: [PATCH] Suppress notices while loading config. fixes #6933 see #7087 git-svn-id: http://svn.automattic.com/wordpress/trunk@8070 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-load.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-load.php b/wp-load.php index a5a0b2168..ccaffd510 100644 --- a/wp-load.php +++ b/wp-load.php @@ -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 */