diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index d965a66f71..b7d87fe554 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -26,13 +26,9 @@ // ================================================================== // DB Constructor - connects to the server and selects a database - function wpdb($dbuser, $dbpassword, $dbname, $dbhost) - { - + function wpdb($dbuser, $dbpassword, $dbname, $dbhost) { $this->dbh = @mysql_connect($dbhost,$dbuser,$dbpassword); - - if ( ! $this->dbh ) - { + if ( ! $this->dbh ) { die("

Error establishing a database connection! This probably means that the connection information in youn wp-config.php file is incorrect. Double check it and try again.

"); } - $this->select($dbname); $this->querycount = 0; - } // ================================================================== // Select a DB (if another one needs to be selected) - function select($db) - { - if ( !@mysql_select_db($db,$this->dbh)) - { + function select($db)x{ + if ( !@mysql_select_db($db,$this->dbh)) { die("

We're having a little trouble selecting the proper database for WordPress.