WordPress.org

Make WordPress Core

Ticket #16629: 16629.patch

File 16629.patch, 972 bytes (added by JustinSainton, 19 months ago)
  • wp-admin/user-edit.php

     
    269269if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?> 
    270270<tr><th><label for="role"><?php _e('Super Admin'); ?></label></th> 
    271271<td> 
    272 <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) ) : ?> 
     272<?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?> 
    273273<p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p> 
    274274<?php else : ?> 
    275275<p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>