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

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 14 14:08:31 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 commit
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  has-patch query loop => has-patch commit


Comment:

 Replying to [comment:16 Denis-de-Bernardy]:
 > this is not an invalid call. it used to work when it got committed, and
 a separate ticket had us change the automatic setting up of the postdata.
 >
 > the call is in there in case you use a recent posts widget in the loop,
 using the_widget().

 If you would read my [#comment:15 comment] again and also the docs for
 wp_reset_query() you will see that it is indeed misplaced.

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


More information about the wp-trac mailing list