Make WordPress Core

Changeset 6463


Ignore:
Timestamp:
12/22/2007 06:24:10 AM (16 years ago)
Author:
ryan
Message:

Don't block SET NAMES query. Props g30rg3x for the find. fixes #5503 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-includes/wp-db.php

    r6461 r6463  
    7979        }
    8080
     81        $this->ready = true;
     82
    8183        if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') )
    8284            $this->query("SET NAMES '$this->charset'");
    8385
    8486        $this->select($dbname);
    85         $this->ready = true;
    8687    }
    8788
     
    9697    function select($db) {
    9798        if (!@mysql_select_db($db, $this->dbh)) {
     99            $this->ready = false;
    98100            $this->bail("
    99101<h1>Can&#8217;t select database</h1>
Note: See TracChangeset for help on using the changeset viewer.