[wp-trac] [WordPress Trac] #56224: Hardcoded wp-login.php vs login_url filter?

WordPress Trac noreply at wordpress.org
Wed Sep 6 11:41:48 UTC 2023


#56224: Hardcoded wp-login.php vs login_url filter?
----------------------------------------+-------------------------------
 Reporter:  malthert                    |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  6.4
Component:  Login and Registration      |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-dev-note needs-patch  |     Focuses:  coding-standards
----------------------------------------+-------------------------------

Comment (by faisal03):

 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">
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56224#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list