[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 3 21:41:26 UTC 2017
#41555: REST API: Call `rest_get_server()` instead of accessing the
`$wp_rest_server` global
--------------------------------------+-----------------------
Reporter: jnylen0 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Changes (by jnylen0):
* keywords: has-patch => has-patch has-unit-tests
Comment:
Added a unit test in [attachment:41555.2.diff]. Before these changes, it
fails with the same message we saw on WP.com:
Fatal error: Call to a member function register_route() on null in src
/wp-includes/rest-api.php on line 77
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41555#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list