Make WordPress Core


Ignore:
Timestamp:
12/29/2009 09:34:12 PM (15 years ago)
Author:
ryan
Message:

Don't set charset if mysql version does not have the collation cap. Props miqrogroove. see #11666 for trunk

File:
1 edited

Legend:

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

    r12480 r12573  
    386386        $this->ready = true;
    387387
    388         if ( !empty($this->charset) ) {
     388        if ( $this->has_cap( 'collation' ) && !empty($this->charset) ) {
    389389            if ( function_exists('mysql_set_charset') ) {
    390390                mysql_set_charset($this->charset, $this->dbh);
Note: See TracChangeset for help on using the changeset viewer.