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
This commit is contained in:
ryan 2011-04-05 18:48:53 +00:00
parent b60c345536
commit ebaa6ded07

View File

@ -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;