Make WordPress Core

Changeset 33777


Ignore:
Timestamp:
08/28/2015 03:48:47 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Network Admin: Hide the bulk actions checkbox for super admins.

See [25125] for hiding the checkbox for the main site in Sites table.

props bordoni.
fixes #28529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r33774 r33777  
    184184     */
    185185    public function column_cb( $user ) {
     186        if ( is_super_admin( $user->ID ) ) {
     187            return;
     188        }
    186189        ?>
    187190        <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.