[wp-trac] [WordPress Trac] #62485: Lost Password form action URL is not using wp_lostpassword_url

WordPress Trac noreply at wordpress.org
Wed Nov 20 11:49:23 UTC 2024


#62485: Lost Password form action URL is not using wp_lostpassword_url
--------------------------+-----------------------------
 Reporter:  talextech     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Lost Password form action URL is set by
 {{{#!php
 <?php
 echo esc_url( network_site_url( 'wp-login.php?action=lostpassword',
 'login_post' ) );
 }}}


 Because of this, if lostpassword_url filter is used the lost password form
 will no longer work. So ideally the action should be set to:

 {{{#!php
 <?php
 echo esc_url( wp_lostpassword_url($redirect_to) );
 }}}


 Attached is the updated wp-login.php file with the action URL changed on
 line 896

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62485>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list