Opened 6 years ago
Last modified 6 years ago
#46033 new defect (bug)
Please fix redirect in wp-login.php
Reported by: | tinodjwp | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.0.3 |
Component: | Login and Registration | Keywords: | needs-testing |
Focuses: | Cc: |
Description
On line 619 in wp-login.php there is a redirect that does not take in account site_url setting which is braking experience in some cases. Therefore, the suggested fix is replace
<?php wp_safe_redirect(remove_query_arg( array( 'key', 'login' )) );
with
<?php wp_safe_redirect( site_url(remove_query_arg( array( 'key', 'login' )) ) );
Attachments (1)
Change History (5)
#1
@
6 years ago
- Component changed from General to Login and Registration
- Keywords needs-patch needs-testing added; has-patch removed
Note: See
TracTickets for help on using
tickets.
Hi @tinodjwp - Welcome to WordPress Trac!
It would be helpful if you could mention a situation that the default site URL isn't working. However, I agree that using
site_url
allows to run thesite_url
filters, which a plugin in your situation might be using. Here is a patch with the changes you mentioned. Let's wait for an admin to review.