WPDB: The `mysqli_query()` call in `wpdb::set_charset()` had the parameters the wrong way around.

git-svn-id: https://develop.svn.wordpress.org/trunk@31374 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2015-02-09 01:25:47 +00:00
parent 4eb88c3d15
commit b136100978
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ class wpdb {
$query = $this->prepare( 'SET NAMES %s', $charset );
if ( ! empty( $collate ) )
$query .= $this->prepare( ' COLLATE %s', $collate );
mysqli_query( $query, $dbh );
mysqli_query( $dbh, $query );
}
} else {
if ( function_exists( 'mysql_set_charset' ) && $this->has_cap( 'set_charset' ) ) {