From 9b41523d8f2c5c7e665e14222a423aa43dd7f67e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 6 Apr 2008 23:23:05 +0000 Subject: [PATCH] Explicit ID check so we don't fall through for empties. Props natecook. fixes #6539 for 2.6 git-svn-id: https://develop.svn.wordpress.org/trunk@7605 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 5d00dce60b..9950d12c6b 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -920,7 +920,7 @@ class WP_Query { $reqpage = 0; } - if ( ('page' != get_option('show_on_front') ) || ( $reqpage != get_option('page_for_posts') ) ) { + if ( ('page' != get_option('show_on_front') ) || ( $reqpage !== get_option('page_for_posts') ) ) { $q['pagename'] = str_replace('%2F', '/', urlencode(urldecode($q['pagename']))); $page_paths = '/' . trim($q['pagename'], '/'); $q['pagename'] = sanitize_title(basename($page_paths));