WordPress.org

Make WordPress Core

Changeset 43331


Ignore:
Timestamp:
06/04/2018 01:45:13 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Users: In wp_validate_user_request_key(), properly return the WP_Error object in case the confirmation email has expired.

Props itowhid06.
Fixes #44298.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r43256 r43331  
    35103510
    35113511    if ( ! $expiration_time || time() > $expiration_time ) {
    3512         $return = new WP_Error( 'expired_key', __( 'The confirmation email has expired.' ) );
     3512        return new WP_Error( 'expired_key', __( 'The confirmation email has expired.' ) );
    35133513    }
    35143514
Note: See TracChangeset for help on using the changeset viewer.