From c1da7bbb0b14df2fc7ba883144e9d030be8012cf Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 23 Mar 2011 19:57:35 +0000 Subject: [PATCH] Don't die inside db_connect() if connection fails. Let dead_db() handle it. fixes #16640 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@17546 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 97d4697536..9820ea0d55 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1048,12 +1048,7 @@ class wpdb {

If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

"/*/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/install.php will handle. - if ( defined( 'WP_SETUP_CONFIG' ) || defined( 'WP_INSTALLING' ) ) - return; - - die(); + return; } $this->set_charset( $this->dbh );