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:
parent
2e1c4959af
commit
25593e291c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user