[wp-trac] [WordPress Trac] #47547: switch_to_locale( 'en_US' ) is unreliable

WordPress Trac noreply at wordpress.org
Thu Feb 29 11:09:49 UTC 2024


#47547: switch_to_locale( 'en_US' ) is unreliable
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:
                                                 |  johnbillion
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  I18N                                 |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch reporter-feedback close  |     Focuses:
                                                 |  administration
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 FWIW in my Preferred Languages plugin I have some e2e tests for the
 dashboard where I switch to en_US and strings are then in en_US as
 expected and `determine_locale()` returns en_US too. But might just be
 because of the plugin :)

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


More information about the wp-trac mailing list