#54297 closed defect (bug) (duplicate)
Multisite: lostpasswordform always posts to the main-site wp-login.php file
Reported by: | henry.wright | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
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">
Attachments (1)
Change History (10)
#2
@
3 years ago
- Resolution set to duplicate
- Status changed from new to closed
Hi @henrywright, this ticket appears to be a duplicate of #21352. Add your thoughts and suggestion to that ticket to help further the discussion on this topic.
#3
@
3 years ago
Hi @costdev. Although related, it isn't a duplicate. This ticket refers to the location of the form submission and the #21352 ticket refers to the function that is generating the lost password URL.
#5
@
3 years ago
Happy to close this ticket though if you prefer to broaden the scope of the #21352 ticket
#6
@
3 years ago
@henrywright Thanks for clarifying that and correcting me!
Let's see what others think about that. I've updated my comment on that ticket to note that this one is a related ticket, not a duplicate.
#7
@
3 years ago
- Keywords has-patch added
Attached is 54297.diff. This patch posts to the sub-site wp-login.php file instead of the main-site wp-login.php file.
This is an issue when the sub-site uses a different language to the main-site.