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.

Built from https://develop.svn.wordpress.org/trunk@41238


git-svn-id: http://core.svn.wordpress.org/trunk@41078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
James Nylen
2017-08-10 01:38:43 +00:00
parent e183d59acb
commit fce0b2dcd9
2 changed files with 4 additions and 13 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41237';
$wp_version = '4.9-alpha-41238';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.