[wp-trac] [WordPress Trac] #12320: Invalid call to wp_reset_query() inside Recent Posts widget

WordPress Trac wp-trac at lists.automattic.com
Thu May 13 20:39:57 UTC 2010


#12320: Invalid call to wp_reset_query() inside Recent Posts widget
------------------------------+---------------------------------------------
 Reporter:  michelwppi        |        Owner:  azaozz
     Type:  defect (bug)      |       Status:  closed
 Priority:  normal            |    Milestone:  3.0   
Component:  Widgets           |      Version:  2.9.2 
 Severity:  normal            |   Resolution:  fixed 
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------
Changes (by westi):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [14607]) Introduce wp_reset_postdata(). Use it to reset the post
 global for the current query_posts() call after using a loop with a new
 WP_Query object. Fixes #12320 props scribu.

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


More information about the wp-trac mailing list