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:
parent
41dc7c7365
commit
3df5f2a3d7
@ -553,7 +553,13 @@ switch ( $action ) {
|
|||||||
$redirect_to = $_REQUEST['redirect_to'];
|
$redirect_to = $_REQUEST['redirect_to'];
|
||||||
$requested_redirect_to = $redirect_to;
|
$requested_redirect_to = $redirect_to;
|
||||||
} else {
|
} 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 = '';
|
$requested_redirect_to = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user