mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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'] ) {
|
||||
|
||||
Reference in New Issue
Block a user