Make WordPress Core

Changeset 6464


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r6460 r6464  
    7777        }
    7878
     79        $this->ready = true;
     80
    7981        if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') )
    8082            $this->query("SET NAMES '$this->charset'");
    8183
    8284        $this->select($dbname);
    83         $this->ready = true;
    8485    }
    8586
     
    114115    function select($db) {
    115116        if (!@mysql_select_db($db, $this->dbh)) {
     117            $this->ready = false;
    116118            $this->bail("
    117119<h1>Can&#8217;t select database</h1>
Note: See TracChangeset for help on using the changeset viewer.