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:
ryan 2008-02-23 04:10:04 +00:00
parent a2274a39d0
commit 5825c9a139
1 changed files with 1 additions and 0 deletions

View File

@ -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;