In WP_Users_List_Table::get_views()
, $current_role
is set and never used.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28296 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1e68b7dab4
commit
fc624a4298
@ -147,7 +147,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
|||||||
$avail_roles =& $users_of_blog['avail_roles'];
|
$avail_roles =& $users_of_blog['avail_roles'];
|
||||||
unset($users_of_blog);
|
unset($users_of_blog);
|
||||||
|
|
||||||
$current_role = false;
|
|
||||||
$class = empty($role) ? ' class="current"' : '';
|
$class = empty($role) ? ' class="current"' : '';
|
||||||
$role_links = array();
|
$role_links = array();
|
||||||
$role_links['all'] = "<a href='$url'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>';
|
$role_links['all'] = "<a href='$url'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>';
|
||||||
@ -158,7 +157,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
|||||||
$class = '';
|
$class = '';
|
||||||
|
|
||||||
if ( $this_role == $role ) {
|
if ( $this_role == $role ) {
|
||||||
$current_role = $role;
|
|
||||||
$class = ' class="current"';
|
$class = ' class="current"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user