Re-use /page/xx/ for Post Paging on Page_on_front. Few fixes related to paging on front page. Fixes #12391

git-svn-id: https://develop.svn.wordpress.org/trunk@13494 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2010-02-28 09:40:42 +00:00
parent e7721041df
commit bfe10ba981
2 changed files with 23 additions and 8 deletions

View File

@@ -1480,11 +1480,18 @@ class WP_Query {
(
empty($this->query) ||
!empty($qv['preview']) ||
!empty($qv['cpage'])
!empty($qv['cpage']) ||
!empty($qv['page']) ||
!empty($qv['paged'])
) ) {
$this->is_page = true;
$this->is_home = false;
$qv['page_id'] = get_option('page_on_front');
// Correct <!--nextpage--> for page_on_front
if ( !empty($qv['paged']) ) {
$qv['page'] = $qv['paged'];
unset($qv['paged']);
}
}
if ( '' != $qv['pagename'] ) {