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:
Scott Taylor 2014-05-06 15:32:16 +00:00
parent 1e68b7dab4
commit fc624a4298

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"';
}