[wp-trac] [WordPress Trac] #21790: When set a static front page WP main query isn't set correctly
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 5 09:58:05 UTC 2012
#21790: When set a static front page WP main query isn't set correctly
--------------------------+------------------------------
Reporter: markoheijnen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.4.1
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
`is_front_page()` calls `is_page()`, which only works on `'wp'` action or
later.
`'pre_get_posts'` is too early to use conditional tags (this is also
mentioned on the [http://codex.wordpress.org/Conditional_Tags Codex
page]).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21790#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list