[wp-trac] [WordPress Trac] #39210: switch_to_locale() unloads all plugin and theme translations

WordPress Trac noreply at wordpress.org
Tue Oct 13 12:10:24 UTC 2020


#39210: switch_to_locale() unloads all plugin and theme translations
-----------------------------------------------------+---------------------
 Reporter:  gchtr                                    |       Owner:  (none)
     Type:  defect (bug)                             |      Status:  new
 Priority:  normal                                   |   Milestone:  5.6
Component:  I18N                                     |     Version:  4.7
 Severity:  normal                                   |  Resolution:
 Keywords:  has-patch needs-unit-tests dev-feedback  |     Focuses:
-----------------------------------------------------+---------------------

Comment (by swissspidy):

 It's been a long time indeed...

 The PR looks good at first glance, but some tests would be great.

 Would this `$reloadable` flag still be needed if we ever implement a
 simple cache/registry like proposed in the other patches? FWIW such a
 class is working fine in [https://github.com/swissspidy/preferred-
 languages/blob/80f45ac2f3f439245e524e3503987d0483fe50ad/inc/class-
 preferred-languages-textdomain-registry.php Preferred Languages]

 We shouldn't neglect non-dotorg plugins/themes when adding this, that's
 why I worked on this more complex approach in the day. Any chance we could
 resurrect that?

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


More information about the wp-trac mailing list