[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 10:24:26 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):
Well, `is_front_page()` only calls `is_page()` when a static home page is
set: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
includes/query.php#L3287
The notices are coming from `get_queried_object()`, where `$this->post` is
not filled yet: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
includes/query.php#L2986
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21790#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list