Make WordPress Core

Ticket #41165: 41165.patch

File 41165.patch, 730 bytes (added by yahil, 8 years ago)

I have made changes on existing .path to improve coding standard.

  • src/wp-admin/includes/class-wp-users-list-table.php

     
    554554
    555555                $role_list = array();
    556556
     557                if ( current_user_can( 'manage_network_users' ) ) {
     558                        $super_admins = get_super_admins();
     559                        if ( in_array( $user_object->user_login, $super_admins ) ) {
     560                                $role_list[ 'superadmin' ] = __( 'Super Admin' );
     561                        }
     562                }
     563
    557564                foreach ( $user_object->roles as $role ) {
    558565                        if ( isset( $wp_roles->role_names[ $role ] ) ) {
    559566                                $role_list[ $role ] = translate_user_role( $wp_roles->role_names[ $role ] );