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.


git-svn-id: https://develop.svn.wordpress.org/trunk@28618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-05-29 17:52:25 +00:00
parent 2e1c4959af
commit 25593e291c
1 changed files with 2 additions and 2 deletions

View File

@ -743,7 +743,7 @@ class WP_Tax_Query {
}
$terms = $query['terms'];
$operator = $query['operator'];
$operator = strtoupper( $query['operator'] );
if ( 'IN' == $operator ) {
@ -3993,4 +3993,4 @@ function wp_check_term_hierarchy_for_loops( $parent, $term_id, $taxonomy ) {
wp_update_term( $loop_member, $taxonomy, array( 'parent' => 0 ) );
return $parent;
}
}