From c3e32dcd4e0609c97b3048be020f2a029f7f475f Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 8 Apr 2008 01:05:45 +0000 Subject: [PATCH] Revert [7605]. It breaks setting posts page. see #6539 git-svn-id: http://svn.automattic.com/wordpress/trunk@7622 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9950d12c6..5d00dce60 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));