mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
REST API: Revert [38980].
`/users/me` still needs attention, but this change wasn't quite ready. See #38521. git-svn-id: https://develop.svn.wordpress.org/trunk@38990 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user