Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#48017 closed defect (bug) (duplicate)

Redirect after Get New Password button is used

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

Description (last modified by SergeyBiryukov)

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( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : site_url() . '/wp-login.php?checkemail=confirm';

I simply included the site_url() function and a forward slash.

Change History (2)

#1 @davidbaumwald
5 years ago

  • Component changed from Login and Registration to General
  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for the ticket @wentloc! We're tracking this issue in #47980.

#2 @SergeyBiryukov
5 years ago

  • Component changed from General to Login and Registration
  • Description modified (diff)
Note: See TracTickets for help on using tickets.