WordPress.org

Make WordPress Core

Ticket #44403: 44403.diff

File 44403.diff, 465 bytes (added by subrataemfluence, 3 years ago)
  • user.php

    diff --git src/wp-includes/user.php b/user.php
    index 566702f..d309e2f 100755
    old new function wp_validate_user_request_key( $request_id, $key ) { 
    35093509        }
    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
    35153515        return true;