Make WordPress Core

Ticket #44686: 44686.diff

File 44686.diff, 459 bytes (added by subrataemfluence, 7 years ago)

Proposed patch

  • user.php

    diff --git wp-includes/user.php/user.php b/user.php
    index 4ebcf82..b7418b5 100755
    old new function wp_validate_user_request_key( $request_id, $key ) { 
    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( 'link_expired_error',  __( 'This link has expired.' ) );
    35123512        }
    35133513
    35143514        if ( empty( $key ) ) {