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

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 4 18:20:37 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:           
-------------------------------+--------------------------------------------
 Currently, the recent posts widget will needlessly trigger the start_loop
 and end_loop hooks, and set in_the_loop to true when it's definitely not
 needed.

 The attached patch ensures that only $wp_the_query will do such a thing.

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


More information about the wp-trac mailing list