mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
65747e3c91
commit
6cab9557fb
@ -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 );
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user