Don't set charset if mysql version does not have the collation cap. Props miqrogroove. see #11666 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12573 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
36272e0c33
commit
9406273b6a
@ -385,7 +385,7 @@ class wpdb {
|
||||
|
||||
$this->ready = true;
|
||||
|
||||
if ( !empty($this->charset) ) {
|
||||
if ( $this->has_cap( 'collation' ) && !empty($this->charset) ) {
|
||||
if ( function_exists('mysql_set_charset') ) {
|
||||
mysql_set_charset($this->charset, $this->dbh);
|
||||
$this->real_escape = true;
|
||||
|
Loading…
Reference in New Issue
Block a user