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

Props dkarfa.
Fixes #47967.
Built from https://develop.svn.wordpress.org/trunk@46070


git-svn-id: http://core.svn.wordpress.org/trunk@45882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-09-05 23:18:55 +00:00
parent 65747e3c91
commit 6cab9557fb
2 changed files with 3 additions and 3 deletions

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 );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-46069';
$wp_version = '5.3-alpha-46070';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.