Fix role filter

git-svn-id: http://svn.automattic.com/wordpress/trunk@8937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-09-19 05:40:40 +00:00
parent a03f02f4b3
commit 781c4c4bf3
1 changed files with 1 additions and 2 deletions

View File

@ -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[] = "<li><a href=\"users.php\"$class>" . __('All Users') . "</a>";
foreach ( $wp_roles->get_names() as $this_role => $name ) {
if ( !isset($avail_roles[$role]) )
if ( !isset($avail_roles[$this_role]) )
continue;
$class = '';