Roles display fix from davidhouse. fixes #1660
git-svn-id: https://develop.svn.wordpress.org/trunk@2847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1d2af63ae8
commit
3dfce9fae3
@ -181,7 +181,7 @@ default:
|
|||||||
|
|
||||||
foreach($userids as $userid) {
|
foreach($userids as $userid) {
|
||||||
$tmp_user = new WP_User($userid);
|
$tmp_user = new WP_User($userid);
|
||||||
$roles = array_keys($tmp_user->roles);
|
$roles = $tmp_user->roles;
|
||||||
$role = $roles[0];
|
$role = $roles[0];
|
||||||
$roleclasses[$role][$tmp_user->data->user_login] = $tmp_user;
|
$roleclasses[$role][$tmp_user->data->user_login] = $tmp_user;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user