| 1 | Index: wp-admin/includes/template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/template.php (revision 8454) |
|---|
| 4 | +++ wp-admin/includes/template.php (working copy) |
|---|
| 5 | @@ -670,7 +670,7 @@ |
|---|
| 6 | } else { |
|---|
| 7 | $edit = $user_object->user_login; |
|---|
| 8 | } |
|---|
| 9 | - $role_name = translate_with_context($wp_roles->role_names[$role]); |
|---|
| 10 | + $role_name = $wp_roles->role_names[$role] ? translate_with_context($wp_roles->role_names[$role]) : __('None'); |
|---|
| 11 | $r = "<tr id='user-$user_object->ID'$style> |
|---|
| 12 | <th scope='row' class='check-column'><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></th> |
|---|
| 13 | <td><strong>$edit</strong></td> |
|---|