Make WordPress Core


Ignore:
Timestamp:
04/23/2010 08:34:03 PM (15 years ago)
Author:
ryan
Message:

Introduce get_super_admins(). Allow hard-coding a global super_admins array and bypassing site options. fixes #12815

File:
1 edited

Legend:

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

    r14102 r14206  
    532532                        case 'spam':
    533533                            $user = new WP_User( $val );
    534                             if ( in_array( $user->user_login, get_site_option( 'site_admins', array( 'admin' ) ) ) )
     534                            if ( in_array( $user->user_login, get_super_admins() ) )
    535535                                wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a network admnistrator.' ), esc_html( $user->user_login ) ) );
    536536
Note: See TracChangeset for help on using the changeset viewer.