WordPress.org

Make WordPress Core

Ticket #12711: 12711.4.patch

File 12711.4.patch, 739 bytes (added by ocean90, 8 years ago)

fix #12767

  • wp-admin/users.php

     
    368368        $user_object = new WP_User($userid);
    369369        $roles = $user_object->roles;
    370370        $role = array_shift($roles);
    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         }
     371
     372        if ( is_multisite() && empty( $role ) )
     373                continue;
     374
     375        $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"';
     376        echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] );
    375377}
    376378?>
    377379</tbody>