[wp-trac] [WordPress Trac] #43985: Privacy: The user request email should be sent in the user language

WordPress Trac noreply at wordpress.org
Thu Aug 2 16:28:59 UTC 2018


#43985: Privacy: The user request email should be sent in the user language
-------------------------------------------------+-------------------------
 Reporter:  Chouby                               |       Owner:  desrosj
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  4.9.9
Component:  Privacy                              |     Version:  4.9.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-       |     Focuses:
  refresh needs-unit-tests                       |  administration
-------------------------------------------------+-------------------------

Comment (by garrett-eclipse):

 As well looking at the switch_to_locale, if the request is for an email
 which doesn't associate to a valid user then the user_id on the request is
 0. In this case get_user_locale will return the locale of the current user
 (admin taking the action). So I am wondering is it the desire to use the
 admin user locale when the request user isn't a real WP_User or in that
 case should it default to the site locale? If so a check should be done
 for `$request->user_id == 0` and either supply false to get_user_locale or
 simply call get_locale in that case.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43985#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list