mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-24 09:11:24 +01:00
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 = '';
|
$role_list = '';
|
||||||
$user_has_role = false;
|
$user_has_role = false;
|
||||||
foreach($wp_roles->role_names as $role => $name) {
|
foreach($wp_roles->role_names as $role => $name) {
|
||||||
|
$name = translate_with_context($name);
|
||||||
if ( $profileuser->has_cap($role) ) {
|
if ( $profileuser->has_cap($role) ) {
|
||||||
$selected = ' selected="selected"';
|
$selected = ' selected="selected"';
|
||||||
$user_has_role = true;
|
$user_has_role = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user