Opened 5 years ago
Closed 5 years ago
#48313 closed defect (bug) (fixed)
Administration email verification uses the site locale instead of the user's locale
Reported by: | TimothyBlynJacobs | Owned by: | SergeyBiryukov |
---|---|---|---|
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.
5 years ago
#5
@
5 years 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