Ticket #24992: 24992.patch
File 24992.patch, 582 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/includes/user.php
195 195 * @since 2.0.5 196 196 * 197 197 * @param int $user_id User ID. 198 * @return object WP_User object with user data.198 * @return bool|WP_User False on failure, WP_User object on success. 199 199 */ 200 200 function get_user_to_edit( $user_id ) { 201 201 $user = get_userdata( $user_id ); 202 202 203 $user->filter = 'edit'; 203 if ( $user ) 204 $user->filter = 'edit'; 204 205 205 206 return $user; 206 207 }