REST API: Remove the Location header redirect for the /users/me endpoint.

Props youknowriad jnylen0.
Fixes #38521.

git-svn-id: https://develop.svn.wordpress.org/trunk@38980 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Rachel Baker
2016-10-27 14:36:49 +00:00
parent 3dd4e62653
commit 855a29ccbf
2 changed files with 5 additions and 5 deletions

View File

@@ -288,8 +288,6 @@ 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;
}