Ticket #47851: users.php.2.diff
| File users.php.2.diff, 647 bytes (added by , 6 years ago) |
|---|
-
src/wp-admin/users.php
234 234 $userids = array_map( 'intval', (array) $_REQUEST['users'] ); 235 235 } 236 236 237 //exclude current user id 238 if ( in_array( get_current_user_id(), $userids ) ) { 239 $userids = array_diff( $userids, array( get_current_user_id() ) ); 240 $userids = array_values( $userids ); 241 } 242 237 243 /** 238 244 * Filters whether the users being deleted have additional content 239 245 * associated with them outside of the `post_author` and `link_owner` relationships.