mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Query fix from skeltoac. fixes #2822
git-svn-id: http://svn.automattic.com/wordpress/trunk@3869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a6407ca84
commit
7dab31bbe5
@ -546,7 +546,7 @@ class WP_Query {
|
||||
$q['what_to_show'] = 'posts';
|
||||
}
|
||||
|
||||
if ( $this->is_home && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) {
|
||||
if ( $this->is_home && empty($this->query) && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) {
|
||||
$this->is_page = true;
|
||||
$this->is_home = false;
|
||||
$q['page_id'] = get_option('page_on_front');
|
||||
|
Loading…
Reference in New Issue
Block a user