Make WordPress Core


Ignore:
Timestamp:
10/27/2016 02:36:49 PM (8 years ago)
Author:
rachelbaker
Message:

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

Props youknowriad jnylen0.
Fixes #38521.

File:
1 edited

Legend:

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

    r38832 r38980  
    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 );
    293291
    294292        return $response;
Note: See TracChangeset for help on using the changeset viewer.