mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
WPDB: When deciding if a query needs extra sanity checking based on collation, we can quickly return if the query is entirely ASCII characters.
See #32029. Built from https://develop.svn.wordpress.org/trunk@32233 git-svn-id: http://core.svn.wordpress.org/trunk@32207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6f38333ab2
commit
5775586646
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -2405,6 +2405,11 @@ class wpdb {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// All-ASCII queries don't need extra checking.
|
||||||
|
if ( $this->check_ascii( $query ) ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
$table = $this->get_table_from_query( $query );
|
$table = $this->get_table_from_query( $query );
|
||||||
if ( ! $table ) {
|
if ( ! $table ) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user