WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#48017 closed defect (bug)

Redirect after Get New Password button is used — at Initial Version

Reported by: wentloc Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2.3
Component: Login and Registration Keywords:
Focuses: Cc:

Description

We found an instance, whether it was new or after the update to 5.2.3, that when a user clicks the Get New Password button in the lostpassword screen, that the user is redirected to https://wp-login.php/?checkemail=confirm. The email still comes in to the user, but is navigated away from the site. As a note, this is on a windows hosting (just because it makes it interesting sometimes). I modified line 568 of wp-login.php to
$redirect_to = ! empty( $_REQUESTredirect_to? ) ? $_REQUESTredirect_to? : site_url() . '/wp-login.php?checkemail=confirm';
I simply included the site_url() function and a forward slash.

Change History (0)

Note: See TracTickets for help on using tickets.