[wp-trac] [WordPress Trac] #14705: [15531] breaks is_*() conditional tags

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 26 16:16:22 UTC 2010


#14705: [15531] breaks is_*() conditional tags
--------------------------+-------------------------------------------------
 Reporter:  freddyware    |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:                 
 Severity:  critical      |    Keywords:  needs-patch    
--------------------------+-------------------------------------------------
 #14494 suggested moving the is_*() conditional tags into the WP_Query
 class and [15531] changed [source:/trunk/wp-includes/query.php] to
 redirect those calls to the global `$wp_query` object.

 However, it appears that this move has broken at least one of the
 conditional tags because `$wp_query` isn't known -- this is the error:

 {{{
 Fatal error: Call to a member function is_feed() on a non-object in
 /home/frederickd/frederickding.com/wordpress/wp-includes/query.php on line
 270
 }}}

 [source:/trunk/wp-includes/query.php at 15531#L270 See line 270.]

 Right now I am experiencing this critical error on the homepage of a site
 running trunk.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14705>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list