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
This commit is contained in:
Dion Hulse 2010-12-25 23:26:09 +00:00
parent a748e507e5
commit b8e50af2d7
1 changed files with 1 additions and 1 deletions

View File

@ -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'] ) ) {