return $role_links;
}
+ /**
+ * @global string $mode
+ * @param string $which
+ */
protected function pagination( $which ) {
global $mode;
public function display_rows() {
global $mode;
- $alt = '';
$super_admins = get_super_admins();
foreach ( $this->items as $user ) {
- $alt = ( 'alternate' == $alt ) ? '' : 'alternate';
+ $class = '';
$status_list = array( 'spam' => 'site-spammed', 'deleted' => 'site-deleted' );
foreach ( $status_list as $status => $col ) {
if ( $user->$status )
- $alt .= " $col";
+ $class .= " $col";
}
?>
- <tr class="<?php echo $alt; ?>">
+ <tr class="<?php echo trim( $class ); ?>">
<?php
list( $columns, $hidden ) = $this->get_column_info();
break;
case 'email':
- echo "<td $attributes><a href='mailto:$user->user_email'>$user->user_email</a></td>";
+ echo "<td $attributes><a href='" . esc_url( "mailto:$user->user_email" ) . "'>$user->user_email</a></td>";
break;
case 'registered':
if ( 'list' == $mode )
- $date = 'Y/m/d';
+ $date = __( 'Y/m/d' );
else
- $date = 'Y/m/d \<\b\r \/\> g:i:s a';
+ $date = __( 'Y/m/d g:i:s a' );
echo "<td $attributes>" . mysql2date( $date, $user->user_registered ) . "</td>";
break;