mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
Users List Table: after [35011], just use wp_roles()
, no global import. #winning
See #22959. Built from https://develop.svn.wordpress.org/trunk@35012 git-svn-id: http://core.svn.wordpress.org/trunk@34977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ab2905da84
commit
57c2ef2655
@ -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();
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35011';
|
||||
$wp_version = '4.4-alpha-35012';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user