[wp-trac] [WordPress Trac] #37312: Invalid call to wp_reset_postdata inside Recent Posts widget
WordPress Trac
noreply at wordpress.org
Mon Nov 20 15:29:09 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:
------------------------------+--------------------------
Comment (by superpoincare):
Earier, the code for "Recent Posts" had wp_reset_postdata().
Now not. I understand this fix removes wp_reset_postdata() from the code
but shouldn't it be the case that it should run after the html for Recent
Posts has been created?
It seems that if I want to do something, in Widgets, I have to first use
wp_reset_postdata(). Is that logical?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37312#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list