From 9406273b6a906d2b1cc60e6fa8b5e0c8731f4011 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 29 Dec 2009 21:34:12 +0000 Subject: [PATCH] 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 --- wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 8f136ad54d..6ad88a49cf 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -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;