git-svn-id: http://svn.automattic.com/wordpress/trunk@14445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cea6004286
commit
ce9fce6073
|
@ -1474,17 +1474,17 @@ class WP_Query {
|
||||||
$this->is_home = true;
|
$this->is_home = true;
|
||||||
|
|
||||||
// Correct is_* for page_on_front and page_for_posts
|
// Correct is_* for page_on_front and page_for_posts
|
||||||
if ( $this->is_home &&
|
if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') ) {
|
||||||
'page' == get_option('show_on_front') && get_option('page_on_front') &&
|
$_query = wp_parse_args($query);
|
||||||
( empty($query) || !array_diff( array_keys($this->query), array('preview', 'page', 'paged', 'cpage') ) )
|
if ( empty($_query) || !array_diff( array_keys($_query), array('preview', 'page', 'paged', 'cpage') ) ) {
|
||||||
) {
|
$this->is_page = true;
|
||||||
$this->is_page = true;
|
$this->is_home = false;
|
||||||
$this->is_home = false;
|
$qv['page_id'] = get_option('page_on_front');
|
||||||
$qv['page_id'] = get_option('page_on_front');
|
// Correct <!--nextpage--> for page_on_front
|
||||||
// Correct <!--nextpage--> for page_on_front
|
if ( !empty($qv['paged']) ) {
|
||||||
if ( !empty($qv['paged']) ) {
|
$qv['page'] = $qv['paged'];
|
||||||
$qv['page'] = $qv['paged'];
|
unset($qv['paged']);
|
||||||
unset($qv['paged']);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue