mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Document the globals used in some REST API methods.
See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@51278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1173,6 +1173,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
*
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @global WP_Roles $wp_roles WordPress role management object.
|
||||
*
|
||||
* @param int $user_id User ID.
|
||||
* @param array $roles New user roles.
|
||||
* @return true|WP_Error True if the current user is allowed to make the role change,
|
||||
|
||||
Reference in New Issue
Block a user