You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Networks and Sites: remove email address check when attempting to demote a Super Admin.
This change ensures that a capable Super Admin is allowed to manage global Users as intended, and removes an invisible & undocumented restriction (that was easily bypassed anyways).
It also adds 1 multisite unit test to confirm the intended behavior
Props flixos90, johnjamesjacoby, Mista-Flo.
Fixes #39170.
git-svn-id: https://develop.svn.wordpress.org/trunk@60977 602fd350-edb4-49c9-b593-d223f7449a82
<p><label><input type="checkbox" id="super_admin" name="super_admin"<?phpchecked( is_super_admin( $profile_user->ID ) ); ?> /> <?php_e( 'Grant this user super admin privileges for the Network.' ); ?></label></p>
480
-
<?phpelse : ?>
481
-
<p><?php_e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>
482
-
<?phpendif; ?>
478
+
<p><label><input type="checkbox" id="super_admin" name="super_admin"<?phpchecked( is_super_admin( $profile_user->ID ) ); ?> /> <?php_e( 'Grant this user super admin privileges for the Network.' ); ?></label></p>
0 commit comments