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:
ryan 2008-07-25 15:36:40 +00:00
parent 44a80acfe5
commit 5685d51d1f
1 changed files with 1 additions and 1 deletions

View File

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