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

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 21 19:37:11 UTC 2010


#12320: Invalid call to wp_reset_query() inside Recent Posts widget
--------------------------+-------------------------------------------------
 Reporter:  michelwppi    |       Owner:  azaozz                            
     Type:  defect (bug)  |      Status:  new                               
 Priority:  normal        |   Milestone:  3.0                               
Component:  Widgets       |     Version:  2.9.2                             
 Severity:  normal        |    Keywords:  has-patch needs-testing query loop
--------------------------+-------------------------------------------------

Comment(by scribu):

 12320.2.diff extracts the code into a new function - wp_reset_postdata() -
 which can be used in other contexts.

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


More information about the wp-trac mailing list