WordPress.org

Make WordPress Core

Ticket #12711: 12711.patch

File 12711.patch, 681 bytes (added by ocean90, 5 years ago)
  • wp-admin/users.php

     
    368368        $user_object = new WP_User($userid); 
    369369        $roles = $user_object->roles; 
    370370        $role = array_shift($roles); 
    371  
    372         $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; 
    373         echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] ); 
     371        if ( is_multisite() && ! empty($role) ) { 
     372                $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; 
     373                echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] ); 
     374        } 
    374375} 
    375376?> 
    376377</tbody>