From fe349da62aa331b6e3276751ed4369fd8123e81a Mon Sep 17 00:00:00 2001 From: Joe Oblivian <0blivian@insiberia.net> Date: Tue, 1 Nov 2011 18:32:23 +0100 Subject: [PATCH] awful workaround --- wp-content/db.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wp-content/db.php b/wp-content/db.php index 79c189e55..abc3353e7 100644 --- a/wp-content/db.php +++ b/wp-content/db.php @@ -723,6 +723,15 @@ class hyperdb extends wpdb { $collate = null; $this->set_charset($this->dbhs[$dbhname], $charset, $collate); + + if ( !isset( $charset ) ) + $charset = null; + + if ( !isset( $collate ) ) + $collate = null; + + // AI workaround: set all queries to latin1 + $this->set_charset($this->dbhs[$dbhname], 'latin1'); $this->dbh = $this->dbhs[$dbhname]; // needed by $wpdb->_real_escape() -- GitLab