I18N: Display the logged out message in the user's locale

git-svn-id: https://develop.svn.wordpress.org/trunk@45690 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling 2019-07-27 14:30:19 +00:00
parent 41dc7c7365
commit 3df5f2a3d7

View File

@ -553,7 +553,13 @@ switch ( $action ) {
$redirect_to = $_REQUEST['redirect_to'];
$requested_redirect_to = $redirect_to;
} else {
$redirect_to = 'wp-login.php?loggedout=true';
$redirect_to = add_query_arg(
array(
'loggedout' => 'true',
'wp_lang' => get_user_locale( $user ),
),
wp_login_url()
);
$requested_redirect_to = '';
}