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:
Sergey Biryukov 2018-06-28 02:23:27 +00:00
parent 9ba957770e
commit e0e564d84b
2 changed files with 2 additions and 2 deletions

View File

@ -3509,7 +3509,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;

View File

@ -4,7 +4,7 @@
*
* @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.