[wp-trac] [WordPress Trac] #57116: Plugin translations not loaded after calling `switch_to_locale()`

WordPress Trac noreply at wordpress.org
Thu Nov 17 07:54:35 UTC 2022


#57116: Plugin translations not loaded after calling `switch_to_locale()`
--------------------------------------+---------------------
 Reporter:  johnbillion               |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.1.2
Component:  I18N                      |     Version:  6.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by swissspidy):

 * milestone:  Awaiting Review => 6.1.2


Comment:

 I was able to reproduce this and saw how the cache wasn't working as
 intended for this use case. There's a draft PR to fix this, but I have yet
 to write better tests that actually catch this, as none of the existing
 ones have done so unfortunately.

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


More information about the wp-trac mailing list