WordPress.org

Make WordPress Core

Ticket #11666: 11666-upgrade-failure.patch

File 11666-upgrade-failure.patch, 435 bytes (added by miqrogroove, 8 years ago)
  • wp-db.php

     
    385385
    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);
    391391                                $this->real_escape = true;