[wp-trac] Re: [WordPress Trac] #9854: wp_query gets poisoned by new WP_Query objects

WordPress Trac wp-trac at lists.automattic.com
Mon May 18 15:58:13 GMT 2009


#9854: wp_query gets poisoned by new WP_Query objects
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  ryan
     Type:  defect (bug)       |      Status:  new 
 Priority:  normal             |   Milestone:  2.8 
Component:  Query              |     Version:  2.8 
 Severity:  normal             |    Keywords:      
-------------------------------+--------------------------------------------

Comment(by ryan):

 WP::register_globals() does this:

 {{{
 $GLOBALS['post'] = & $wp_query->post;
 }}}

 Either removing that ref or breaking the ref in the_post() helps. Opted
 for ref break in [11382].

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


More information about the wp-trac mailing list