Changeset 49036 for trunk/src/wp-includes/user.php
- Timestamp:
- 09/23/2020 12:25:47 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r49028 r49036 1192 1192 $found_selected = false; 1193 1193 $parsed_args['selected'] = (int) $parsed_args['selected']; 1194 1194 1195 foreach ( (array) $users as $user ) { 1195 1196 $user->ID = (int) $user->ID; … … 1200 1201 1201 1202 if ( ! $found_selected ) { 1202 $users[] = get_userdata( $parsed_args['selected'] ); 1203 $selected_user = get_userdata( $parsed_args['selected'] ); 1204 if ( $selected_user ) { 1205 $users[] = $selected_user; 1206 } 1203 1207 } 1204 1208 }
Note: See TracChangeset
for help on using the changeset viewer.