[wp-trac] [WordPress Trac] #48313: Administration email verification uses the site locale instead of the user's locale

WordPress Trac noreply at wordpress.org
Tue Oct 15 18:11:06 UTC 2019


#48313: Administration email verification uses the site locale instead of the
user's locale
-------------------------------+-----------------------------
 Reporter:  TimothyBlynJacobs  |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  General            |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 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
 <?php
 $redirect_to = add_query_arg( array( 'action' => 'confirm_admin_email',
 'wp_lang' => $user->locale ), wp_login_url( $redirect_to ) );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48313>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list