[wp-trac] [WordPress Trac] #41555: REST API: Call `rest_get_server()` instead of accessing the `$wp_rest_server` global
WordPress Trac
noreply at wordpress.org
Thu Aug 10 01:37:32 UTC 2017
#41555: REST API: Call `rest_get_server()` instead of accessing the
`$wp_rest_server` global
---------------------------------------------+-----------------------
Reporter: jnylen0 | Owner: jnylen0
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-----------------------
Changes (by jnylen0):
* owner: => jnylen0
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"41238"]:
{{{
#!CommitTicketReference repository="" revision="41238"
REST API: Always call `rest_get_server()` instead of accessing the
`$wp_rest_server` global.
This is a consistency improvement and also a bug fix for fairly obscure
cases involving modified WP load order.
Fixes #41555.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41555#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list