diff --git a/wp-includes/query.php b/wp-includes/query.php index 725a30648..20f4b529c 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2654,8 +2654,9 @@ class WP_Query { $this->queried_object = NULL; $this->queried_object_id = 0; - $tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) ); - if ( !empty( $tax_query_in ) ) { + if ( $this->is_category || $this->is_tag || $this->is_tax ) { + $tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) ); + $query = reset( $tax_query_in ); if ( 'term_id' == $query['field'] )