Revert [7605]. It breaks setting posts page. see #6539

git-svn-id: https://develop.svn.wordpress.org/trunk@7622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-08 01:05:45 +00:00
parent a36e390a73
commit 11f65056f9
1 changed files with 1 additions and 1 deletions

View File

@ -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));