Skip to content

Commit 91a4f85

Browse files
committed
Cast page_id to int before deciding if is_page. fixes WordPress#2769
git-svn-id: https://develop.svn.wordpress.org/trunk@4132 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e0da7f0 commit 91a4f85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-includes/query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ function parse_query ($query) {
375375
// If year, month, day, hour, minute, and second are set, a single
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;
381381
} elseif (!empty($qv['s'])) {

0 commit comments

Comments
 (0)