From 16a3d5e0a18cac47ae3691b2768d585f3236f8a4 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@13327 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ); }