Opened 5 months ago
Closed 3 months ago
#48313 closed defect (bug) (fixed)
Administration email verification uses the site locale instead of the user's locale
| Reported by: |  | Owned by: |  | 
|---|---|---|---|
| Milestone: | 5.3.1 | Priority: | normal | 
| Severity: | normal | Version: | 5.3 | 
| Component: | Users | Keywords: | has-patch needs-testing fixed-major | 
| Focuses: | Cc: | 
Description
Given a site locale of German, and a user locale of English. When you login in the "Administration email verification" screen is partially in German instead of English.
I think this is because get_user_locale only works in the admin, which wp-login.php doesn't count as. 
A possible fix might be to pass wp_lang when building the redirect URL?
<?php $redirect_to = add_query_arg( array( 'action' => 'confirm_admin_email', 'wp_lang' => $user->locale ), wp_login_url( $redirect_to ) );
Attachments (1)
Change History (11)
    
      
         
        
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
      
      
3 months ago
    
    
  
              
    
      
    #5
  
    
        
          
             @
 @
            
3 months ago
        
    
  
  
  - Keywords needs-refresh added
Hi @sathyapulse ,
The patch doesn't apply cleanly, could you generate a new one against wordpress-develop please? thanks!
Note: See
        TracTickets for help on using
        tickets.
    

 
                       
			     
			 
                
48313.patch