From ebaa6ded070ecdc0b700ee0ed6fd75867486b5cf Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@17606 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;