Don't die for failed db connects during install. Props westi. fixes #16640 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@17536 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-03-23 17:46:40 +00:00
parent 615e0c5bc7
commit 43b0ccccbc
1 changed files with 2 additions and 2 deletions

View File

@ -1051,8 +1051,8 @@ class wpdb {
"/*/WP_I18N_DB_CONN_ERROR*/, $this->dbhost ), 'db_connect_fail' );
// If show errors is disabled then we need to die anyway as we don't have a working DB connection
// unless we're trying to test the initial connection, in which case setup-config.php will handle.
if ( defined( 'WP_SETUP_CONFIG' ) )
// unless we're trying to test the initial connection, in which case setup-config.php/install.php will handle.
if ( defined( 'WP_SETUP_CONFIG' ) || defined( 'WP_INSTALLING' ) )
return;
die();