mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Better handling of users with no role. Props Mark Jaquith. #2809
git-svn-id: https://develop.svn.wordpress.org/trunk@3859 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -313,7 +313,11 @@ foreach($roleclasses as $role => $roleclass) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<?php if ( !empty($role) ) : ?>
|
||||
<th colspan="7" align="left"><h3><?php echo $wp_roles->role_names[$role]; ?></h3></th>
|
||||
<?php else : ?>
|
||||
<th colspan="7" align="left"><h3><em><?php _e('No role for this blog'); ?></h3></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<tr class="thead">
|
||||
<th style="text-align: left"><?php _e('ID') ?></th>
|
||||
|
||||
Reference in New Issue
Block a user