From 22bc77ccee26861a79f65275d0ba1f120fb6a50d Mon Sep 17 00:00:00 2001 From: nbachiyski Date: Mon, 19 Jul 2010 20:35:15 +0000 Subject: [PATCH] Do not include newline character in the beginning if the database error string git-svn-id: http://svn.automattic.com/wordpress/trunk@15447 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 790c3a9b4..ddd48efb7 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -742,8 +742,7 @@ class wpdb { if ( !@mysql_select_db( $db, $dbh ) ) { $this->ready = false; - $this->bail( sprintf( /*WP_I18N_DB_SELECT_DB*/' -

Can’t select database

+ $this->bail( sprintf( /*WP_I18N_DB_SELECT_DB*/'

Can’t select database

We were able to connect to the database server (which means your username and password is okay) but not able to select the %1$s database.