[wp-trac] [WordPress Trac] #48017: Redirect after Get New Password button is used
WordPress Trac
noreply at wordpress.org
Wed Sep 11 15:43:00 UTC 2019
#48017: Redirect after Get New Password button is used
------------------------------------+-----------------------------
Reporter: wentloc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 5.2.3
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48017>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list