WordPress.org

Make WordPress Core

Changeset 4232


Ignore:
Timestamp:
09/25/2006 02:14:44 AM (15 years ago)
Author:
ryan
Message:

Cast page_id to int before deciding if is_page. fixes #2769

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/classes.php

    r4227 r4232  
    110110            // post is being queried.       
    111111            $this->is_single = true;
    112         } elseif ('' != $qv['static'] || '' != $qv['pagename'] || '' != $qv['page_id']) {
     112        } elseif ('' != $qv['static'] || '' != $qv['pagename'] || (int) $qv['page_id']) {
    113113            $this->is_page = true;
    114114            $this->is_single = false;
Note: See TracChangeset for help on using the changeset viewer.