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:
Sergey Biryukov 2020-02-17 03:56:06 +00:00
parent 97380ec1ce
commit 8f877dc875
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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.