WordPress.org

Make WordPress Core

Changeset 14042


Ignore:
Timestamp:
04/09/2010 07:17:42 AM (8 years ago)
Author:
nacin
Message:

Fix revoke_super_admin(). see #12933.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r14040 r14042  
    832832
    833833    $admin_email = get_site_option( 'admin_email' );
     834    $super_admins = get_site_option( 'site_admins', array( 'admin' ) );
    834835
    835836    $user = new WP_User( $user_id );
     
    838839            if ( $username == $user->user_login ) {
    839840                unset( $super_admins[$key] );
     841                update_site_option( 'site_admins' , $super_admins );
    840842                do_action( 'revoked_super_admin', $user_id );
    841843                break;
     
    843845        }
    844846    }
    845 
    846     update_site_option( 'site_admins' , $super_admins );
    847847}
    848848?>
Note: See TracChangeset for help on using the changeset viewer.