Don't try to translate empty role name. Props wasp. fixes #6554 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
44a80acfe5
commit
5685d51d1f
|
@ -670,7 +670,7 @@ function user_row( $user_object, $style = '', $role = '' ) {
|
|||
} else {
|
||||
$edit = $user_object->user_login;
|
||||
}
|
||||
$role_name = translate_with_context($wp_roles->role_names[$role]);
|
||||
$role_name = $wp_roles->role_names[$role] ? translate_with_context($wp_roles->role_names[$role]) : __('None');
|
||||
$r = "<tr id='user-$user_object->ID'$style>
|
||||
<th scope='row' class='check-column'><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></th>
|
||||
<td><strong>$edit</strong></td>
|
||||
|
|
Loading…
Reference in New Issue