diff --git a/wp-includes/query.php b/wp-includes/query.php index 89cf9676b3..b82b40501d 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2081,7 +2081,7 @@ class WP_Query { } // Back-compat - if ( $this->is_category || $this->is_tag || $this->is_tax ) { + if ( !empty($this->tax_query->queries) ) { $tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) ); if ( !empty( $tax_query_in ) ) { if ( !isset( $q['taxonomy'] ) ) {