Remove role context. Props nbachiyski. fixes #5966
git-svn-id: http://svn.automattic.com/wordpress/trunk@6991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2274a39d0
commit
5825c9a139
|
@ -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