WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #48017


Ignore:
Timestamp:
09/11/2019 07:04:08 PM (6 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48017

    • Property Status changed from new to closed
    • Property Milestone changed from Awaiting Review to
    • Property Keywords needs-patch removed
    • Property Resolution changed from to duplicate
  • Ticket #48017 – Description

    initial v2  
    11We 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
     2{{{
    23$redirect_to = ! empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : site_url() . '/wp-login.php?checkemail=confirm';
     4}}}
    35I simply included the site_url() function and a forward slash.