Make WordPress Core


Ignore:
Timestamp:
11/27/2019 02:33:47 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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

Props sathyapulse, TimothyBlynJacobs.
Fixes #48313.

File:
1 edited

Legend:

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

    r46749 r46788  
    12551255
    12561256                                if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan ) {
    1257                                         $redirect_to = add_query_arg( 'action', 'confirm_admin_email', wp_login_url( $redirect_to ) );
     1257                                        $redirect_to = add_query_arg(
     1258                                                array(
     1259                                                        'action'  => 'confirm_admin_email',
     1260                                                        'wp_lang' => get_user_locale( $user ),
     1261                                                ),
     1262                                                wp_login_url( $redirect_to )
     1263                                        );
    12581264                                }
    12591265                        }
Note: See TracChangeset for help on using the changeset viewer.