In `WP_Users_List_Table::get_views()`, `$current_role` is set and never used.

See #27882.


Built from https://develop.svn.wordpress.org/trunk@28296


git-svn-id: http://core.svn.wordpress.org/trunk@28124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-06 15:33:15 +00:00
parent 209f008d77
commit 3054b924a3
1 changed files with 0 additions and 2 deletions

View File

@ -147,7 +147,6 @@ class WP_Users_List_Table extends WP_List_Table {
$avail_roles =& $users_of_blog['avail_roles'];
unset($users_of_blog);
$current_role = false;
$class = empty($role) ? ' class="current"' : '';
$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>';
@ -158,7 +157,6 @@ class WP_Users_List_Table extends WP_List_Table {
$class = '';
if ( $this_role == $role ) {
$current_role = $role;
$class = ' class="current"';
}