[wp-trac] [WordPress Trac] #40626: Revisions API do not initialize GLOBALS['post']
WordPress Trac
noreply at wordpress.org
Mon May 1 21:45:01 UTC 2017
#40626: Revisions API do not initialize GLOBALS['post']
--------------------------+-----------------------------
Reporter: pdufour | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Calling functions like `get_post()` do not work within the Post Revisions
API endpoint since they don't have a line like `$GLOBALS['post'] =
$post;`m which the posts controller does have
https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
api/endpoints/class-wp-rest-posts-controller.php#L1381-L1383
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40626>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list