Ticket #44550: 44550.diff
File 44550.diff, 724 bytes (added by , 6 years ago) |
---|
-
src/wp-login.php
877 877 wp_die( $result ); 878 878 } 879 879 880 $switched_locale = false; 881 $request_data = wp_get_user_request_data( $request_id ); 882 883 if ( $request_data ) { 884 $switched_locale = switch_to_locale( get_user_locale( $request_data->user_id ) ); 885 } 886 880 887 /** 881 888 * Fires an action hook when the account action has been confirmed by the user. 882 889 * … … 894 901 895 902 login_header( __( 'User action confirmed.' ), $message ); 896 903 login_footer(); 904 905 if ( $switched_locale ) { 906 restore_current_locale(); 907 } 908 897 909 exit; 898 910 899 911 case 'login':