[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 22:47:12 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 zamoose):

 Replying to [comment:10 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.

 Ahh! Precisely the open lead I needed connected! Many thanks.

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


More information about the wp-trac mailing list