mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@32233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user