Make WordPress Core

Changeset 8456


Ignore:
Timestamp:
07/25/2008 03:37:16 PM (16 years ago)
Author:
ryan
Message:

Don't try to translate empty role name. Props wasp. fixes #6554 for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/includes/template.php

    r8319 r8456  
    671671        $edit = $user_object->user_login;
    672672    }
    673     $role_name = translate_with_context($wp_roles->role_names[$role]);
     673    $role_name = $wp_roles->role_names[$role] ? translate_with_context($wp_roles->role_names[$role]) : __('None');
    674674    $r = "<tr id='user-$user_object->ID'$style>
    675675        <th scope='row' class='check-column'><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></th>
Note: See TracChangeset for help on using the changeset viewer.