Users List Table: after [35011], just use wp_roles()
, no global import. #winning
See #22959. git-svn-id: https://develop.svn.wordpress.org/trunk@35012 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aa9b423cf4
commit
5200642cc5
@ -524,13 +524,11 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
* @since 4.4.0
|
||||
* @access protected
|
||||
*
|
||||
* @global WP_Roles $wp_roles WP_Roles instance.
|
||||
*
|
||||
* @param WP_User $user_object The WP_User object.
|
||||
* @return array An array of user roles.
|
||||
*/
|
||||
protected function get_role_list( $user_object ) {
|
||||
global $wp_roles;
|
||||
$wp_roles = wp_roles();
|
||||
|
||||
$role_list = array();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user