[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:33:22 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
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  needs-patch query loop => has-patch needs-testing query loop


Comment:

 12320.diff restores the $post global without messing with $wp_query of
 $wp_the_query.

 Try it out.

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


More information about the wp-trac mailing list