WordPress.org

Make WordPress Core

Changeset 45690


Ignore:
Timestamp:
07/27/2019 02:30:19 PM (5 months ago)
Author:
ocean90
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r45582 r45690  
    554554            $requested_redirect_to = $redirect_to;
    555555        } else {
    556             $redirect_to           = 'wp-login.php?loggedout=true';
     556            $redirect_to           = add_query_arg(
     557                array(
     558                    'loggedout' => 'true',
     559                    'wp_lang'   => get_user_locale( $user ),
     560                ),
     561                wp_login_url()
     562            );
    557563            $requested_redirect_to = '';
    558564        }
Note: See TracChangeset for help on using the changeset viewer.