Query fix from skeltoac. fixes #2822

git-svn-id: https://develop.svn.wordpress.org/trunk@3869 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-14 21:49:10 +00:00
parent c8cb6bbdcd
commit cb1347c092
1 changed files with 1 additions and 1 deletions

View File

@ -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');