Make WordPress Core

Ticket #44685: 44685.diff

File 44685.diff, 459 bytes (added by desrosj, 6 years ago)
  • src/wp-includes/user.php

     
    35083508        }
    35093509
    35103510        if ( ! in_array( $request->status, array( 'request-pending', 'request-failed' ), true ) ) {
    3511                 return __( 'This link has expired.' );
     3511                return new WP_Error( 'expired_link', __( 'This link has expired.' ) );
    35123512        }
    35133513
    35143514        if ( empty( $key ) ) {