Make WordPress Core


Ignore:
Timestamp:
10/17/2014 08:24:57 PM (10 years ago)
Author:
boonebgorges
Message:

Bail from cleaning meta query clause when it's not an array.

Later isset() checks on string values were causing notices on PHP < 5.4.

Props jorbin.
See #29642.

File:
1 edited

Legend:

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

    r29940 r29941  
    985985            if ( 'relation' === $key ) {
    986986                $relation = $query;
     987
     988            } else if ( ! is_array( $query ) ) {
     989                continue;
    987990
    988991            // First-order clause.
Note: See TracChangeset for help on using the changeset viewer.