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:
Ryan Boren
2006-06-10 20:26:26 +00:00
parent a4c408af37
commit 1053ca7014
4 changed files with 26 additions and 7 deletions
+4
View File
@@ -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>