Make WordPress Core

Changeset 21925


Ignore:
Timestamp:
09/20/2012 01:50:35 PM (14 years ago)
Author:
ryan
Message:

Allow granting the network admin email user super admin. Props JustinSainton, garyc40. fixes #16629

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r21496 r21925  
    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 : ?>
Note: See TracChangeset for help on using the changeset viewer.