Changeset 14011
- Timestamp:
- 04/05/2010 10:28:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r14007 r14011 808 808 */ 809 809 function grant_super_admin( $user_id ) { 810 global $current_user; 811 812 if ( $current_user->ID == $user_id || !current_user_can( 'manage_network_options' ) ) 813 return; 814 810 815 $super_admins = get_site_option( 'site_admins', array( 'admin' ) ); 811 816 … … 824 829 */ 825 830 function revoke_super_admin( $user_id ) { 831 global $current_user; 832 833 if ( $current_user->ID == $user_id || !current_user_can( 'manage_network_options' ) ) 834 return; 835 826 836 $super_admins = get_site_option( 'site_admins', array( 'admin' ) ); 837 if ( count( $super_admins ) < 2 ) 838 return; 839 827 840 $admin_email = get_site_option( 'admin_email' ); 828 841
Note: See TracChangeset
for help on using the changeset viewer.