diff --git a/wp-includes/version.php b/wp-includes/version.php index 27436f6ebe..89a755d50c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-RC2-32232'; +$wp_version = '4.2-RC2-32233'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 7dd81b89cc..489b80d3fb 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -2405,6 +2405,11 @@ class wpdb { return true; } + // All-ASCII queries don't need extra checking. + if ( $this->check_ascii( $query ) ) { + return true; + } + $table = $this->get_table_from_query( $query ); if ( ! $table ) { return false;