WordPress.org

Make WordPress Core

Changeset 28618


Ignore:
Timestamp:
05/29/2014 05:52:25 PM (5 years ago)
Author:
wonderboymusic
Message:

When queries are passed to WP_Tax_Query, the value for operator is assumed to be uppercase. This is an unnecessary constraint. In ->get_sql(), cast it using $operator = strtoupper( $query['operator'] ).

Props clifgriffin.
Fixes #27557.

File:
1 edited

Legend:

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

    r28583 r28618  
    744744
    745745            $terms = $query['terms'];
    746             $operator = $query['operator'];
     746            $operator = strtoupper( $query['operator'] );
    747747
    748748            if ( 'IN' == $operator ) {
Note: See TracChangeset for help on using the changeset viewer.