[wp-trac] [WordPress Trac] #37312: Invalid call to wp_reset_postdata inside Recent Posts widget
WordPress Trac
noreply at wordpress.org
Wed Oct 18 00:34:05 UTC 2017
#37312: Invalid call to wp_reset_postdata inside Recent Posts widget
------------------------------+--------------------------
Reporter: peterwilsoncc | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9
Component: Widgets | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+--------------------------
Changes (by westonruter):
* status: reviewing => closed
* resolution: => fixed
Comment:
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/37312#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list