Ticket #16827: user-row-highlights1.diff
| File user-row-highlights1.diff, 945 bytes (added by nickmomrik, 2 years ago) |
|---|
-
wp-admin/includes/class-wp-ms-users-list-table.php
134 134 function display_rows() { 135 135 global $current_site, $mode; 136 136 137 $alt = '';137 $alt = true; 138 138 $super_admins = get_super_admins(); 139 139 foreach ( $this->items as $user ) { 140 $alt = ( 'alternate' == $alt ) ? '' : 'alternate'; 140 $alt = !$alt; 141 if ( $alt ) 142 $class = 'alternate'; 141 143 142 144 $status_list = array( 'spam' => 'site-spammed', 'deleted' => 'site-deleted' ); 143 145 144 146 foreach ( $status_list as $status => $col ) { 145 147 if ( $user->$status ) 146 $ alt .= " $col";148 $class = $col; 147 149 } 148 149 150 ?> 150 <tr class="<?php echo $ alt; ?>">151 <tr class="<?php echo $class; ?>"> 151 152 <?php 152 153 153 154 list( $columns, $hidden ) = $this->get_column_info();
