Make WordPress Core


Ignore:
Timestamp:
10/28/2016 02:06:17 AM (8 years ago)
Author:
pento
Message:

REST API: Revert [38980].

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

See #38521.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r38980 r38990  
    289289        $response = $this->prepare_item_for_response( $user, $request );
    290290        $response = rest_ensure_response( $response );
     291        $response->header( 'Location', rest_url( sprintf( '%s/%s/%d', $this->namespace, $this->rest_base, $current_user_id ) ) );
     292        $response->set_status( 302 );
    291293
    292294        return $response;
Note: See TracChangeset for help on using the changeset viewer.