Make WordPress Core


Ignore:
Timestamp:
10/02/2017 11:20:12 PM (8 years ago)
Author:
johnbillion
Message:

I18N: Allow the login screen language to be specified via a wp_lang query variable, and use this for the interim login modal.

This allows users who are using the admin area in a language other than the site language to read the notice on the login screen
(which explains that they need to log in again) in their chosen language.

Props Nikschavan, swissspidy

Fixes #40205

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r41628 r41692  
    53435343
    53445344    if ( $same_domain ) {
     5345        $login_src = add_query_arg( array(
     5346            'interim-login' => '1',
     5347            'wp_lang'       => get_user_locale(),
     5348        ), $login_url );
    53455349        ?>
    5346         <div id="wp-auth-check-form" class="loading" data-src="<?php echo esc_url( add_query_arg( array( 'interim-login' => 1 ), $login_url ) ); ?>"></div>
     5350        <div id="wp-auth-check-form" class="loading" data-src="<?php echo esc_url( $login_src ); ?>"></div>
    53475351        <?php
    53485352    }
Note: See TracChangeset for help on using the changeset viewer.