Make WordPress Core

Changeset 15627


Ignore:
Timestamp:
09/17/2010 10:35:05 PM (14 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r15626 r15627  
    12841284            }
    12851285
    1286             if ( empty($qv['cat']) || ($qv['cat'] == '0') ) {
     1286            if ( empty($qv['cat']) || ($qv['cat'] == '0') )
    12871287                $this->is_category = false;
    1288             } else {
    1289                 $this->is_category = strpos($qv['cat'], '-') !== false;
    1290             }
     1288            else
     1289                $this->is_category = strpos($qv['cat'], '-') === false;
    12911290
    12921291            if ( !empty($qv['category_name']) ) {
Note: See TracChangeset for help on using the changeset viewer.