Ticket #44686: 44686.diff
| File 44686.diff, 459 bytes (added by , 7 years ago) |
|---|
-
user.php
diff --git wp-includes/user.php/user.php b/user.php index 4ebcf82..b7418b5 100755
old new function wp_validate_user_request_key( $request_id, $key ) { 3508 3508 } 3509 3509 3510 3510 if ( ! in_array( $request->status, array( 'request-pending', 'request-failed' ), true ) ) { 3511 return __( 'This link has expired.');3511 return new WP_Error( 'link_expired_error', __( 'This link has expired.' ) ); 3512 3512 } 3513 3513 3514 3514 if ( empty( $key ) ) {