From 81d1fdcb3dcf23bfcbb0e6f528edf11742e9bec1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 5 Apr 2011 18:48:53 +0000 Subject: [PATCH] Set is_* flags for AND taxonomy queries. fixes #17054 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@17606 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 87422db416..b2bfad7e41 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1510,7 +1510,7 @@ class WP_Query { $this->parse_tax_query( $qv ); foreach ( $this->tax_query->queries as $tax_query ) { - if ( 'IN' == $tax_query['operator'] ) { + if ( ( 'NOT' != $tax_query['operator'] ) && ( 'NOT IN' != $tax_query['operator'] ) ) { switch ( $tax_query['taxonomy'] ) { case 'category': $this->is_category = true;