mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
When using Page on front, Do not jump back to Blog listing when per-page query vars are set. Fixes #12047
git-svn-id: http://svn.automattic.com/wordpress/trunk@13493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db84578f24
commit
479926f048
@ -1474,7 +1474,14 @@ class WP_Query {
|
||||
$this->is_home = true;
|
||||
|
||||
// Correct is_* for page_on_front and page_for_posts
|
||||
if ( $this->is_home && ( empty($this->query) || $qv['preview'] == 'true' ) && 'page' == get_option('show_on_front') && get_option('page_on_front') ) {
|
||||
if ( $this->is_home &&
|
||||
'page' == get_option('show_on_front') &&
|
||||
get_option('page_on_front') &&
|
||||
(
|
||||
empty($this->query) ||
|
||||
!empty($qv['preview']) ||
|
||||
!empty($qv['cpage'])
|
||||
) ) {
|
||||
$this->is_page = true;
|
||||
$this->is_home = false;
|
||||
$qv['page_id'] = get_option('page_on_front');
|
||||
|
Loading…
Reference in New Issue
Block a user