[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function

WordPress Trac noreply at wordpress.org
Mon Oct 10 12:05:54 UTC 2016


#26511: Introduce a locale-switching function
--------------------------------------+-------------------------
 Reporter:  johnbillion               |       Owner:  swissspidy
     Type:  feature request           |      Status:  accepted
 Priority:  high                      |   Milestone:  4.7
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by swissspidy):

 In [attachment:26511.8.diff]:

 * Introduces `is_locale_switched()` including tests.
 * Switch locale in the files / functions mentioned above. Exceptions:
 `wpmu_signup_blog_notification()` and `wpmu_signup_user_notification()`
 (no user exists yet) as well as `wp_notify_postauthor()`,
 `wp_notify_moderator()` (need to be refactored). No tests included yet.

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


More information about the wp-trac mailing list