From 17e249f35988cdeef1257f5e5bc1e91de22739f1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 17 Sep 2010 22:35:05 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 2d2fac4a6f..8fa701ed91 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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;