Make WordPress Core


Ignore:
Timestamp:
06/10/2006 08:26:26 PM (18 years ago)
Author:
ryan
Message:

Better handling of users with no role. Props Mark Jaquith. #2809

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r3857 r3859  
    314314
    315315<tr>
     316<?php if ( !empty($role) ) : ?>
    316317    <th colspan="7" align="left"><h3><?php echo $wp_roles->role_names[$role]; ?></h3></th>
     318<?php else : ?>
     319    <th colspan="7" align="left"><h3><em><?php _e('No role for this blog'); ?></h3></th>
     320<?php endif; ?>
    317321</tr>
    318322<tr class="thead">
Note: See TracChangeset for help on using the changeset viewer.