WordPress.org

Make WordPress Core

Changeset 43342


Ignore:
Timestamp:
06/13/2018 02:01:47 AM (10 days 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.
Merges [43331] to the 4.9 branch.
Fixes #44298.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/user.php

    r43257 r43342  
    34323432
    34333433    if ( ! $expiration_time || time() > $expiration_time ) {
    3434         $return = new WP_Error( 'expired_key', __( 'The confirmation email has expired.' ) );
     3434        return new WP_Error( 'expired_key', __( 'The confirmation email has expired.' ) );
    34353435    }
    34363436
Note: See TracChangeset for help on using the changeset viewer.