[wp-trac] Re: [WordPress Trac] #9458: There can only be one loop

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 4 18:43:39 GMT 2009


#9458: There can only be one loop
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  anonymous                    
     Type:  defect (bug)       |      Status:  new                          
 Priority:  normal             |   Milestone:  2.8                          
Component:  Optimization       |     Version:  2.8                          
 Severity:  normal             |    Keywords:  has-patch tested dev-feedback
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  => has-patch tested dev-feedback


Comment:

 @filosofo: my understanding is that, in php4, it'll check the object
 number too.

 The second patch fixes a whole range of miscellaneous bugs related to
 calling query_posts(). Basically, the various is_* functions and so on
 that are directly related to the main WP_Query are changed in such a way
 that they all use wp_the_query rather than wp_query (which gets overridden
 by query_posts().

 An additional patch could, optionally, drop the calls to setup_postdata()
 when it's not the main query. But I figured that, since the template tags
 are used in the recent posts widgets, that one is probably left untouched.

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


More information about the wp-trac mailing list