Don't set charset if mysql version does not have the collation cap. Props miqrogroove. see #11666 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@12573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
309afc8ad3
commit
91c8fc90c0
|
@ -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