Users: In `wp_validate_user_request_key()`, properly return the `WP_Error` object in case the confirmation email has expired.
Props itowhid06. Merges [43331] to the 4.9 branch. Fixes #44298. Built from https://develop.svn.wordpress.org/branches/4.9@43342 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d668b72f5b
commit
ddc8032efd
|
@ -3431,7 +3431,7 @@ function wp_validate_user_request_key( $request_id, $key ) {
|
|||
}
|
||||
|
||||
if ( ! $expiration_time || time() > $expiration_time ) {
|
||||
$return = new WP_Error( 'expired_key', __( 'The confirmation email has expired.' ) );
|
||||
return new WP_Error( 'expired_key', __( 'The confirmation email has expired.' ) );
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9.7-alpha-43316';
|
||||
$wp_version = '4.9.7-alpha-43342';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue