[wp-trac] [WordPress Trac] #14729: Fatal errors after [15531] when conditional tags are used too early
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 30 21:01:44 UTC 2010
#14729: Fatal errors after [15531] when conditional tags are used too early
--------------------------+-------------------------------------------------
Reporter: zamoose | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version:
Severity: critical | Keywords: dev-feedback
--------------------------+-------------------------------------------------
Comment(by nacin):
If $wp_query is not set, then accessing a nonexistent property
(`$wp_query->is_page`) triggers a notice (maybe a warning, don't
remember). But accessing a nonexistent method (`$wp_query->is_page()`) is
a fatal error.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14729#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list