Make WordPress Core

Changeset 46789


Ignore:
Timestamp:
11/27/2019 02:38:37 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Users: Display admin email verification screen in user's locale instead of site locale.

Props sathyapulse, TimothyBlynJacobs.
Merges [46788] to the 5.3 branch.
Fixes #48313.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-login.php

    r46361 r46789  
    12431243
    12441244                if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan ) {
    1245                     $redirect_to = add_query_arg( 'action', 'confirm_admin_email', wp_login_url( $redirect_to ) );
     1245                    $redirect_to = add_query_arg(
     1246                        array(
     1247                            'action'  => 'confirm_admin_email',
     1248                            'wp_lang' => get_user_locale( $user ),
     1249                        ),
     1250                        wp_login_url( $redirect_to )
     1251                    );
    12461252                }
    12471253            }
Note: See TracChangeset for help on using the changeset viewer.