Remove role context. Props nbachiyski. fixes #5966
git-svn-id: https://develop.svn.wordpress.org/trunk@6991 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ecf851aee2
commit
733701303b
@ -172,6 +172,7 @@ echo '<select name="role">';
|
||||
$role_list = '';
|
||||
$user_has_role = false;
|
||||
foreach($wp_roles->role_names as $role => $name) {
|
||||
$name = translate_with_context($name);
|
||||
if ( $profileuser->has_cap($role) ) {
|
||||
$selected = ' selected="selected"';
|
||||
$user_has_role = true;
|
||||
|
Loading…
Reference in New Issue
Block a user