WordPress.org

Make WordPress Core

Changeset 46070


Ignore:
Timestamp:
09/05/2019 11:17:19 PM (3 months ago)
Author:
SergeyBiryukov
Message:

REST API: Mark WP_REST_Users_Controller::update_current_item() and ::delete_current_item() as public.

Props dkarfa.
Fixes #47967.

File:
1 edited

Legend:

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

    r46069 r46070  
    735735     * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
    736736     */
    737     function update_current_item( $request ) {
     737    public function update_current_item( $request ) {
    738738        $request['id'] = get_current_user_id();
    739739
     
    853853     * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
    854854     */
    855     function delete_current_item( $request ) {
     855    public function delete_current_item( $request ) {
    856856        $request['id'] = get_current_user_id();
    857857
Note: See TracChangeset for help on using the changeset viewer.