Fix logic inversion in r15626. see #14892. Also note that r15626 fixed a s/is_category/is_tag/ typo introduced in r6011, on line 1340.
git-svn-id: https://develop.svn.wordpress.org/trunk@15627 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
03a3e5c1d9
commit
17e249f359
@ -1283,11 +1283,10 @@ class WP_Query {
|
||||
$this->is_date = true;
|
||||
}
|
||||
|
||||
if ( empty($qv['cat']) || ($qv['cat'] == '0') ) {
|
||||
if ( empty($qv['cat']) || ($qv['cat'] == '0') )
|
||||
$this->is_category = false;
|
||||
} else {
|
||||
$this->is_category = strpos($qv['cat'], '-') !== false;
|
||||
}
|
||||
else
|
||||
$this->is_category = strpos($qv['cat'], '-') === false;
|
||||
|
||||
if ( !empty($qv['category_name']) ) {
|
||||
$this->is_category = true;
|
||||
|
Loading…
Reference in New Issue
Block a user