[wp-trac] [WordPress Trac] #46671: wp-admin/revisions.php uses the $post global in the wrong way
WordPress Trac
noreply at wordpress.org
Thu Apr 16 08:35:41 UTC 2020
#46671: wp-admin/revisions.php uses the $post global in the wrong way
--------------------------+-----------------------------
Reporter: tofandel | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Revisions | Version: 5.2
Severity: major | Resolution:
Keywords: has-patch | Focuses: administration
--------------------------+-----------------------------
Comment (by tofandel):
@markparnell You should add a call to
{{{
setup_postdata($parent)
}}}
to avoid breaking existing code and solve the issue with wp_reset_postdata
not doing anything
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46671#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list