From b06ee36d8175f5092438100838fcbd9ad599828b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 27 Nov 2019 14:40:00 +0000 Subject: [PATCH] Users: Display admin email verification screen in user's locale instead of site locale. Props sathyapulse, TimothyBlynJacobs. Merges [46788] to the 5.3 branch. Fixes #48313. Built from https://develop.svn.wordpress.org/branches/5.3@46789 git-svn-id: http://core.svn.wordpress.org/branches/5.3@46589 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-login.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 0bd46f46d9..fef718b89d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3.1-alpha-46787'; +$wp_version = '5.3.1-alpha-46789'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index 04e546ea64..8d95c7fb02 100644 --- a/wp-login.php +++ b/wp-login.php @@ -1242,7 +1242,13 @@ switch ( $action ) { $admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS ); if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan ) { - $redirect_to = add_query_arg( 'action', 'confirm_admin_email', wp_login_url( $redirect_to ) ); + $redirect_to = add_query_arg( + array( + 'action' => 'confirm_admin_email', + 'wp_lang' => get_user_locale( $user ), + ), + wp_login_url( $redirect_to ) + ); } }