[wp-trac] Re: [WordPress Trac] #7080: a new WP_Query created in the loop, whose the_post() method is called, messes around with wp_the_query - "recent entries" widget is still loop-breaking

WordPress Trac wp-trac at lists.automattic.com
Sun May 17 21:32:21 GMT 2009


#7080: a new WP_Query created in the loop, whose the_post() method is called,
messes around with wp_the_query - "recent entries" widget is still loop-
breaking
--------------------------+-------------------------------------------------
 Reporter:  msi08         |        Owner:  Denis-de-Bernardy
     Type:  defect (bug)  |       Status:  reopened         
 Priority:  normal        |    Milestone:  2.8              
Component:  Query         |      Version:  2.7              
 Severity:  normal        |   Resolution:                   
 Keywords:  needs-patch   |  
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 had not occurred, even. there is *major* bug in wp_reset_query atm. try
 the procedure I outline above and see for yourself. It *wrecks*
 everything. insert the recent posts before calling the_content(), you'll
 see the post's contents turned into the recent widget's last items'
 contents.

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


More information about the wp-trac mailing list