From b8e50af2d7e5ea4d76bea127d8102d7089279af4 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 25 Dec 2010 23:26:09 +0000 Subject: [PATCH] Set taxonomy/term back-compat query vars for all views (not just taxonomy indexes). Fixes #15978 git-svn-id: https://develop.svn.wordpress.org/trunk@17147 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 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'] ) ) {