mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@33777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
28767e1bac
commit
d5dd61424d
@ -183,6 +183,9 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
* @param WP_User $user The current WP_User object.
|
||||
*/
|
||||
public function column_cb( $user ) {
|
||||
if ( is_super_admin( $user->ID ) ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
|
||||
<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user