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:
nacin 2010-09-17 22:35:05 +00:00
parent 168659371d
commit 75cdf1c0c4
1 changed files with 3 additions and 4 deletions

View File

@ -1283,11 +1283,10 @@ class WP_Query {
$this->is_date = true; $this->is_date = true;
} }
if ( empty($qv['cat']) || ($qv['cat'] == '0') ) { if ( empty($qv['cat']) || ($qv['cat'] == '0') )
$this->is_category = false; $this->is_category = false;
} else { else
$this->is_category = strpos($qv['cat'], '-') !== false; $this->is_category = strpos($qv['cat'], '-') === false;
}
if ( !empty($qv['category_name']) ) { if ( !empty($qv['category_name']) ) {
$this->is_category = true; $this->is_category = true;