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: http://svn.automattic.com/wordpress/trunk@15627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
168659371d
commit
75cdf1c0c4
|
@ -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