From 47e795eaf056dd6903484278a644b0834549aafb Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 22 Jun 2006 03:39:23 +0000 Subject: [PATCH] show_on_front page preview fix from that Andy guy. git-svn-id: https://develop.svn.wordpress.org/trunk@3896 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 8b2fa93197..b7eba2ce76 100644 --- a/wp-includes/query.php +++ b/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');