Skip to content

Commit

Permalink
I18N: Display the logged out message in the user's locale
Browse files Browse the repository at this point in the history
Built from https://develop.svn.wordpress.org/trunk@45690


git-svn-id: http://core.svn.wordpress.org/trunk@45501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ocean90 committed Jul 27, 2019
1 parent 391d6a3 commit 182f813
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 7 additions & 1 deletion wp-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,13 @@ function retrieve_password() {
$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 = '';
}

Expand Down

0 comments on commit 182f813

Please sign in to comment.