From fc624a4298d14addf0f71650ccfbc39f4c9c0546 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 15:32:16 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-wp-users-list-table.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-users-list-table.php b/src/wp-admin/includes/class-wp-users-list-table.php index dcce6d555a..b9af87fd9b 100644 --- a/src/wp-admin/includes/class-wp-users-list-table.php +++ b/src/wp-admin/includes/class-wp-users-list-table.php @@ -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'] = "" . sprintf( _nx( 'All (%s)', 'All (%s)', $total_users, 'users' ), number_format_i18n( $total_users ) ) . ''; @@ -158,7 +157,6 @@ class WP_Users_List_Table extends WP_List_Table { $class = ''; if ( $this_role == $role ) { - $current_role = $role; $class = ' class="current"'; }