Skip to content
Permalink
Browse files

REST API: Mark `WP_REST_Users_Controller::update_current_item()` and …

…`::delete_current_item()` as public.

Props dkarfa.
Fixes #47967.

git-svn-id: https://develop.svn.wordpress.org/trunk@46070 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 5, 2019
1 parent 800b8cf commit 419bb365957b21849c2d28fbc11889f3557af78f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
@@ -734,7 +734,7 @@ public function update_current_item_permissions_check( $request ) {
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
*/
function update_current_item( $request ) {
public function update_current_item( $request ) {
$request['id'] = get_current_user_id();
return $this->update_item( $request );
@@ -852,7 +852,7 @@ public function delete_current_item_permissions_check( $request ) {
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
*/
function delete_current_item( $request ) {
public function delete_current_item( $request ) {
$request['id'] = get_current_user_id();
return $this->delete_item( $request );

0 comments on commit 419bb36

Please sign in to comment.
You can’t perform that action at this time.