From 5264ef86d87603128667747bfd96584980907951 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 19 Sep 2008 05:40:40 +0000 Subject: [PATCH] Fix role filter git-svn-id: https://develop.svn.wordpress.org/trunk@8937 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/users.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-admin/users.php b/wp-admin/users.php index fa91729a91..75c5df6d22 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -286,7 +286,6 @@ if ( ! empty($messages) ) { $role_links = array(); $avail_roles = array(); $users_of_blog = get_users_of_blog(); -//var_dump($users_of_blog); foreach ( (array) $users_of_blog as $b_user ) { $b_roles = unserialize($b_user->meta_value); foreach ( (array) $b_roles as $b_role => $val ) { @@ -301,7 +300,7 @@ $current_role = false; $class = empty($role) ? ' class="current"' : ''; $role_links[] = "
  • " . __('All Users') . ""; foreach ( $wp_roles->get_names() as $this_role => $name ) { - if ( !isset($avail_roles[$role]) ) + if ( !isset($avail_roles[$this_role]) ) continue; $class = '';