From 59701fcaec2a6debf0f535d26344a6556aaac21a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 23 Feb 2010 09:44:27 +0000 Subject: [PATCH] Use sprintf() in hard-coded string. Use same comment and error code as other identical message. See #11644 props hakre git-svn-id: https://develop.svn.wordpress.org/trunk@13327 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/wp-db.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index a6eb1c92b0..02d206c362 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -989,16 +989,16 @@ class wpdb { $dbhname = "dbh" . $action; $this->$dbhname = @mysql_connect( $details[ 'db_host' ], $details[ 'db_user' ], $details[ 'db_password' ] ); if (!$this->$dbhname ) { - $this->bail(/*WP_I18N_DB_CONNECT_DB*/" + $this->bail( sprintf( /*WP_I18N_DB_CONN_ERROR*/"

Error establishing a database connection

-

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at {$details['db_host']}. This could mean your host's database server is down.

+

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at %s. This could mean your host's database server is down.

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_CONNECT_DB*/); +"/*/WP_I18N_DB_CONN_ERROR*/, $details['db_host'] ), 'db_connect_fail' ); } $this->select( $details[ 'db_name' ], $this->$dbhname ); }