Make WordPress Core


Ignore:
Timestamp:
04/21/2015 05:23:44 AM (9 years ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r32232 r32233  
    24062406        }
    24072407
     2408        // All-ASCII queries don't need extra checking.
     2409        if ( $this->check_ascii( $query ) ) {
     2410            return true;
     2411        }
     2412
    24082413        $table = $this->get_table_from_query( $query );
    24092414        if ( ! $table ) {
Note: See TracChangeset for help on using the changeset viewer.