Ticket #44601: 44601.diff
File 44601.diff, 675 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/user.php
2223 2223 } 2224 2224 2225 2225 /** 2226 * Validating input. 2227 * 2228 * @since 4.9.7 2229 * 2230 * @param WP_User $user. 2231 */ 2232 2233 if ( empty( $user ) && !isset( $user ) ) { 2234 return new WP_Error( 'no_password_reset', __( 'Error creating password reset key' ) ); 2235 } 2236 2237 if ( $user instanceof WP_User === false ) { 2238 return new WP_Error( 'no_password_reset', __( 'Error creating password reset key') ); 2239 } 2240 2241 /** 2226 2242 * Filters whether to allow a password to be reset. 2227 2243 * 2228 2244 * @since 2.7.0