mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Docs: Improve inline comments for require_once
calls in WP_REST_Users_Controller
per the documentation standards.
Follow-up to [47295]. See #48303. Built from https://develop.svn.wordpress.org/trunk@47298 git-svn-id: http://core.svn.wordpress.org/trunk@47098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
97380ec1ce
commit
8f877dc875
@ -896,7 +896,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
|
||||
$previous = $this->prepare_item_for_response( $user, $request );
|
||||
|
||||
/** Include admin user functions to get access to wp_delete_user() */
|
||||
// Include user admin functions to get access to wp_delete_user().
|
||||
require_once ABSPATH . 'wp-admin/includes/user.php';
|
||||
|
||||
$result = wp_delete_user( $id, $reassign );
|
||||
@ -1210,7 +1210,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
);
|
||||
}
|
||||
|
||||
/** Include admin functions to get access to get_editable_roles() */
|
||||
// Include admin functions to get access to get_editable_roles().
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
|
||||
// The new role must be editable by the logged-in user.
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-beta1-47297';
|
||||
$wp_version = '5.4-beta1-47298';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user