[wp-trac] [WordPress Trac] #18872: Preview of drafted posts not possible when front page is set to a static page

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 8 00:23:43 UTC 2011


#18872: Preview of drafted posts not possible when front page is set to a static
page
-------------------------------+------------------------------
 Reporter:  jnthnlstr          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.2.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by SergeyBiryukov):

 I imagine this could happen if this block in `query.php` runs when it
 shouldn't:
 http://core.trac.wordpress.org/browser/tags/3.2.1/wp-
 includes/query.php#L2004

 Normally, when doing a preview, the first two conditions aren't satisfied
 at the same time.
 But when I tried to hook into `pre_get_posts` and set `$query->is_home =
 1`, the results I got were similar to the ticket description.

 This also reminded me of #13779 (having cookie issues due to different
 URLs for "!WordPress Address"), but in that case, 404 template would be
 displayed, not the front page.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18872#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list