From 0637b21e512e0ee8bca53bdb479bf35f8085fe41 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 22 Jun 2006 10:08:38 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@587 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-inst/wp-includes/query.php') diff --git a/wp-inst/wp-includes/query.php b/wp-inst/wp-includes/query.php index 0aca74b..ae6ecbe 100644 --- a/wp-inst/wp-includes/query.php +++ b/wp-inst/wp-includes/query.php @@ -546,7 +546,7 @@ class WP_Query { $q['what_to_show'] = 'posts'; } - if ( $this->is_home && empty($this->query) && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) { + if ( $this->is_home && (empty($this->query) || $q['preview'] == 'true') && ( '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'); -- cgit