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

WordPress Trac noreply at wordpress.org
Fri Oct 21 12:51:37 UTC 2022


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

Comment (by swissspidy):

 > This doesn't address the underlying bug, since even with this caching,
 `load_textdomain()` still is called >100 times within one page load - that
 is the root problem here.

 Precisely.

 Please check out https://github.com/WordPress/wordpress-develop/pull/3506
 for a proper fix.

 I know this is time-critical, which is why I have spent yesterday and
 today looking into it, including consulting with @ocean90.

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


More information about the wp-trac mailing list