Ticket #44601: 44601.2.diff
File 44601.2.diff, 639 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/user.php
2196 2196 function get_password_reset_key( $user ) { 2197 2197 global $wpdb, $wp_hasher; 2198 2198 2199 //Validating whether $user is what it is expected to be 2200 if ( ! ( $user instanceof WP_User ) ) { 2201 return new WP_Error( 'invalid_user_data', __( 'Invalid user data' ) ); 2202 } 2203 2199 2204 /** 2200 2205 * Fires before a new password is retrieved. 2201 2206 * … … 2222 2227 $allow = false; 2223 2228 } 2224 2229 2230 2225 2231 /** 2226 2232 * Filters whether to allow a password to be reset. 2227 2233 *