From c0284b853de3073a73bad780dcedfeb7a449cbfb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 27 Nov 2019 14:38:37 +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. git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46789 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-login.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wp-login.php b/src/wp-login.php index 04e546ea64..8d95c7fb02 100644 --- a/src/wp-login.php +++ b/src/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 ) + ); } }