Cast page_id to int before deciding if is_page. fixes #2769
git-svn-id: https://develop.svn.wordpress.org/trunk@4132 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e0da7f0d1d
commit
91a4f85ca8
@ -375,7 +375,7 @@ class WP_Query {
|
||||
// If year, month, day, hour, minute, and second are set, a single
|
||||
// post is being queried.
|
||||
$this->is_single = true;
|
||||
} elseif ('' != $qv['static'] || '' != $qv['pagename'] || '' != $qv['page_id']) {
|
||||
} elseif ('' != $qv['static'] || '' != $qv['pagename'] || (int) $qv['page_id']) {
|
||||
$this->is_page = true;
|
||||
$this->is_single = false;
|
||||
} elseif (!empty($qv['s'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user