Do not set is_category/is_tax/is_tax for is_singular requests. props mtekk. fixes #15487

git-svn-id: https://develop.svn.wordpress.org/trunk@16495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2010-11-19 19:25:53 +00:00
parent 40d1e43970
commit 103bde3e19
1 changed files with 13 additions and 11 deletions

View File

@ -1591,17 +1591,19 @@ class WP_Query {
);
}
foreach ( $tax_query as $query ) {
if ( 'IN' == $query['operator'] ) {
switch ( $query['taxonomy'] ) {
case 'category':
$this->is_category = true;
break;
case 'post_tag':
$this->is_tag = true;
break;
default:
$this->is_tax = true;
if ( !$this->is_singular() ) {
foreach ( $tax_query as $query ) {
if ( 'IN' == $query['operator'] ) {
switch ( $query['taxonomy'] ) {
case 'category':
$this->is_category = true;
break;
case 'post_tag':
$this->is_tag = true;
break;
default:
$this->is_tax = true;
}
}
}
}