REST API: Revert [38980].

`/users/me` still needs attention, but this change wasn't quite ready.

See #38521.


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


git-svn-id: http://core.svn.wordpress.org/trunk@38933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2016-10-28 02:07:35 +00:00
parent f9f6dd7958
commit 60eb1ddc5c
2 changed files with 3 additions and 1 deletions

View File

@ -288,6 +288,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
$user = wp_get_current_user();
$response = $this->prepare_item_for_response( $user, $request );
$response = rest_ensure_response( $response );
$response->header( 'Location', rest_url( sprintf( '%s/%s/%d', $this->namespace, $this->rest_base, $current_user_id ) ) );
$response->set_status( 302 );
return $response;
}

View File

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