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
This commit is contained in:
parent
8f25de113e
commit
c0284b853d
@ -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 )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user