Changeset 44813
- Timestamp:
- 03/07/2019 12:34:56 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r42871 r44813 27 27 * @global string $usersearch 28 28 * @global string $role 29 * @global wpdb $wpdb30 29 * @global string $mode 31 30 */ 32 31 public function prepare_items() { 33 global $usersearch, $role, $ wpdb, $mode;32 global $usersearch, $role, $mode; 34 33 35 34 $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : ''; … … 57 56 58 57 if ( $role === 'super' ) { 59 $logins = implode( "', '", get_super_admins() ); 60 $args['include'] = $wpdb->get_col( "SELECT ID FROM $wpdb->users WHERE user_login IN ('$logins')" ); 58 $args['login__in'] = get_super_admins(); 61 59 } 62 60
Note: See TracChangeset
for help on using the changeset viewer.