Make WordPress Core


Ignore:
Timestamp:
01/08/2015 08:44:10 AM (12 years ago)
Author:
pento
Message:

WPDB: When sanity checking a string, check that it's a string, first - PHP notices can occur if an array or object is handled like a string.

See #21212

File:
1 edited

Legend:

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

    r31093 r31094  
    25142514         */
    25152515        public function strip_invalid_text_for_column( $table, $column, $value ) {
    2516                 if ( $this->check_ascii( $value ) || ! is_string( $value ) ) {
     2516                if ( ! is_string( $value ) || $this->check_ascii( $value ) ) {
    25172517                        return $value;
    25182518                }
Note: See TracChangeset for help on using the changeset viewer.