Set taxonomy/term back-compat query vars for all views (not just taxonomy indexes). Fixes #15978
git-svn-id: http://svn.automattic.com/wordpress/trunk@17147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c626339cca
commit
9f6d86636a
|
@ -2081,7 +2081,7 @@ class WP_Query {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Back-compat
|
// 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' ) );
|
$tax_query_in = wp_list_filter( $this->tax_query->queries, array( 'operator' => 'IN' ) );
|
||||||
if ( !empty( $tax_query_in ) ) {
|
if ( !empty( $tax_query_in ) ) {
|
||||||
if ( !isset( $q['taxonomy'] ) ) {
|
if ( !isset( $q['taxonomy'] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue