mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
In WP_MS_Users_List_Table::get_views(), remove dead code:
* `$wp_roles` doesn't need to be imported. * `$current_role` is set and never used. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28295 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b09a91a666
commit
1e68b7dab4
@ -84,13 +84,12 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
function get_views() {
|
||||
global $wp_roles, $role;
|
||||
global $role;
|
||||
|
||||
$total_users = get_user_count();
|
||||
$super_admins = get_super_admins();
|
||||
$total_admins = count( $super_admins );
|
||||
|
||||
$current_role = false;
|
||||
$class = $role != 'super' ? ' class="current"' : '';
|
||||
$role_links = array();
|
||||
$role_links['all'] = "<a href='" . network_admin_url('users.php') . "'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user