Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:41:40 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r4128 r4132  
    376376            // post is being queried.       
    377377            $this->is_single = true;
    378         } elseif ('' != $qv['static'] || '' != $qv['pagename'] || '' != $qv['page_id']) {
     378        } elseif ('' != $qv['static'] || '' != $qv['pagename'] || (int) $qv['page_id']) {
    379379            $this->is_page = true;
    380380            $this->is_single = false;
Note: See TracChangeset for help on using the changeset viewer.