Changeset 21413 for trunk/wp-admin/network/users.php
- Timestamp:
- 08/03/2012 01:06:05 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/users.php
r21003 r21413 35 35 foreach ( ( $allusers = (array) $_POST['allusers'] ) as $key => $val ) { 36 36 if ( $val != '' && $val != '0' ) { 37 $delete_user = new WP_User( $val );37 $delete_user = get_userdata( $val ); 38 38 39 39 if ( ! current_user_can( 'delete_user', $delete_user->ID ) ) … … 140 140 141 141 case 'spam': 142 $user = new WP_User( $val );143 if ( i n_array( $user->user_login, get_super_admins()) )142 $user = get_userdata( $val ); 143 if ( is_super_admin( $user->ID ) ) 144 144 wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a network administrator.' ), esc_html( $user->user_login ) ) ); 145 145
Note: See TracChangeset
for help on using the changeset viewer.