Changeset 40406 for trunk/src/wp-admin/includes/schema.php
- Timestamp:
- 04/10/2017 09:59:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r39709 r40406 952 952 if ( !is_multisite() ) { 953 953 $site_admins = array( $site_user->user_login ); 954 $users = get_users( array( 'fields' => array( 'ID', 'user_login' ) ) ); 954 $users = get_users( array( 955 'fields' => array( 'user_login' ), 956 'role' => 'administrator', 957 ) ); 955 958 if ( $users ) { 956 959 foreach ( $users as $user ) { 957 if ( is_super_admin( $user->ID ) && !in_array( $user->user_login, $site_admins ) ) 958 $site_admins[] = $user->user_login; 960 $site_admins[] = $user->user_login; 959 961 } 962 963 $site_admins = array_unique( $site_admins ); 960 964 } 961 965 } else {
Note: See TracChangeset
for help on using the changeset viewer.