Login and Registration: Add `/login.php` as an alias for the login page.

This aims to make the login process more user-friendly.

Follow-up to [19875], [19880].

Props lancewillett, subrataemfluence, tejwanihemant, ankit-k-gupta, devmuhib, audrasjb, hellofromTonya, joemcgill.
Fixes #40762.
Built from https://develop.svn.wordpress.org/trunk@56718


git-svn-id: http://core.svn.wordpress.org/trunk@56230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-09-26 16:11:20 +00:00
parent 7e1caa5b44
commit 57f2930594
2 changed files with 2 additions and 1 deletions

View File

@ -1028,6 +1028,7 @@ function wp_redirect_admin_locations() {
$logins = array( $logins = array(
home_url( 'wp-login.php', 'relative' ), home_url( 'wp-login.php', 'relative' ),
home_url( 'login.php', 'relative' ),
home_url( 'login', 'relative' ), home_url( 'login', 'relative' ),
site_url( 'login', 'relative' ), site_url( 'login', 'relative' ),
); );

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.4-alpha-56717'; $wp_version = '6.4-alpha-56718';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.