Skip to content
Snippets Groups Projects
Commit aae0e822 authored by Joe Oblivian's avatar Joe Oblivian Committed by agata
Browse files

awful workaround

parent b488608a
No related branches found
No related tags found
No related merge requests found
...@@ -724,6 +724,15 @@ class hyperdb extends wpdb { ...@@ -724,6 +724,15 @@ class hyperdb extends wpdb {
$this->set_charset($this->dbhs[$dbhname], $charset, $collate); $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() $this->dbh = $this->dbhs[$dbhname]; // needed by $wpdb->_real_escape()
$this->last_used_server = compact('host', 'user', 'name', 'read', 'write'); $this->last_used_server = compact('host', 'user', 'name', 'read', 'write');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment