[wp-trac] [WordPress Trac] #54297: Multisite: lostpasswordform always posts to the main-site wp-login.php file

WordPress Trac noreply at wordpress.org
Wed Oct 20 13:49:28 UTC 2021


#54297: Multisite: lostpasswordform always posts to the main-site wp-login.php file
------------------------------------+-----------------------------
 Reporter:  henry.wright            |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:
 Severity:  normal                  |   Keywords:
  Focuses:  multisite               |
------------------------------------+-----------------------------
 The lost password form always posts to the main-site wp-login.php file. If
 the lost password form on a sub-site is being used then I'd expect the
 form to post to the sub-site wp-login.php file.

 Current

 {{{
 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo
 esc_url( network_site_url( 'wp-login.php?action=lostpassword',
 'login_post' ) ); ?>" method="post">
 }}}

 Suggestion

 {{{
 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo
 esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) );
 ?>" method="post">
 }}}

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


More information about the wp-trac mailing list