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
This commit is contained in:
Sergey Biryukov 2019-09-05 23:17:19 +00:00
parent 800b8cf5ec
commit 419bb36595

View File

@ -734,7 +734,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
* @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 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
* @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 );