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

WordPress Trac noreply at wordpress.org
Wed Oct 18 00:34:03 UTC 2017


#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  |
------------------------------+---------------------

Comment (by westonruter):

 In [changeset:"41890"]:
 {{{
 #!CommitTicketReference repository="" revision="41890"
 Widgets: Use a `foreach` loop instead of The Loop to iterate over posts in
 Recent Posts widget to avoid needing to reset a polluted global `$post`.

 Props welcher, westonruter.
 Amends [14607].
 See #12320.
 Fixes #37312.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12320#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list