[wp-trac] [WordPress Trac] #40626: Revisions API do not initialize GLOBALS['post']
WordPress Trac
noreply at wordpress.org
Wed May 10 04:31:29 UTC 2017
#40626: Revisions API do not initialize GLOBALS['post']
---------------------------------------------+---------------------
Reporter: pdufour | Owner: rmccue
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.8
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-unit-tests has-patch commit | Focuses:
---------------------------------------------+---------------------
Changes (by rmccue):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"40601"]:
{{{
#!CommitTicketReference repository="" revision="40601"
REST API: Set global $post when preparing revisions.
For compatibility with filters on hooks on content filters (such as
shortcodes), we need to set the global. This mirrors the Posts controller.
Props pdufour, jnylen0.
Fixes #40626.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40626#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list