Opened 2 years ago
Last modified 15 months ago
#56224 new enhancement
Hardcoded wp-login.php vs login_url filter?
Reported by: | malthert | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | needs-patch |
Focuses: | Cc: |
Description
The login_url filter allows changing allows changing the login URL.
However there are a few places, where wp-login.php is hardcoded.
Is the filter safe to use to modify the login url? Should (can?) those hardcoded wp-login.php in core be changed?
Change History (8)
#3
@
16 months ago
- Focuses coding-standards added
- Keywords needs-dev-note added
- Milestone changed from Awaiting Review to 6.4
- Type changed from defect (bug) to enhancement
Putting this for 6.4, and marking it as an enhancement.
#4
@
16 months ago
- Keywords needs-patch added
This needs patch and I am also wondering if this can be marked as good-first-bug or not.
#5
@
15 months ago
Should all instances of site_url()
with wp-login.php
be changed?
for example:
<form class="admin-email-confirm-form" name="admin-email-confirm-form" action="<?php echo esc_url( site_url( 'wp-login.php?action=confirm_admin_email', 'login_post' ) ); ?>" method="post">
to something like?:
<form class="admin-email-confirm-form" name="admin-email-confirm-form" action="<?php echo esc_url( wp_login_url() . '?action=confirm_admin_email' ); ?>" method="post">
#6
@
15 months ago
There is also network_site_url()
.
I wonder if we need a new function that will return the path according to the action passed in, with the ability to filter that path so we can easily change it to something nice (without the action get parameter) - something to think about.
#7
@
15 months ago
- Milestone changed from 6.4 to 6.5
There is no patch and no time before Beta 1 to finish and test it, so, I am moving this ticket into the 6.5 milestone.
Related tickets:
BLOG_URLwp-login.php
inwpmu_welcome_notification()
(ms-functions.php and schema.php)login_post
scheme