]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-ms-users-list-table.php
WordPress 4.2.5-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-ms-users-list-table.php
index 3a8dd25259af6e833b75ded106130c5ef66c6ee2..c70636f6d979f1498fa82df6bde64ea62987fcb6 100644 (file)
@@ -149,20 +149,19 @@ class WP_MS_Users_List_Table extends WP_List_Table {
        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();
@@ -225,14 +224,14 @@ class WP_MS_Users_List_Table extends WP_List_Table {
                                        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;