Users: In `wp_validate_user_request_key()`, properly return the `WP_Error` object in case the confirmation email has expired.
Props itowhid06. Fixes #44298. Built from https://develop.svn.wordpress.org/trunk@43331 git-svn-id: http://core.svn.wordpress.org/trunk@43159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ba957770e
commit
e0e564d84b
|
@ -3509,7 +3509,7 @@ function wp_validate_user_request_key( $request_id, $key ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! $expiration_time || time() > $expiration_time ) {
|
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;
|
return true;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43330';
|
$wp_version = '5.0-alpha-43331';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue