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

Built from https://develop.svn.wordpress.org/trunk@45690


git-svn-id: http://core.svn.wordpress.org/trunk@45501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2019-07-27 14:31:55 +00:00
parent 391d6a3f2b
commit 182f813e24
2 changed files with 8 additions and 2 deletions

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-45689';
$wp_version = '5.3-alpha-45690';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

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 = '';
}