Opened 7 years ago
Last modified 7 years ago
#46033 new defect (bug)
Please fix redirect in wp-login.php
| Reported by: | tinodjwp | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Login and Registration | Version: | 5.0.3 |
| Severity: | normal | Keywords: | needs-testing |
| Cc: | Focuses: |
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
@
7 years ago
- Component General → Login and Registration
- Keywords needs-patch needs-testing added; has-patch removed
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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_urlallows to run thesite_urlfilters, 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.