[wp-trac] [WordPress Trac] #39210: switch_to_locale() unloads all plugin and theme translations
WordPress Trac
noreply at wordpress.org
Wed Aug 17 20:30:14 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 SergeyBiryukov):
Replying to [comment:60 flixos90]:
>If it had a notable benefit, it may be worth it, but as far as I can
tell, this is only needed for a single test. That doesn't mean we need to
completely remove it. How about we define this constant only if it is not
defined, or alternatively, only when running the WP core tests?
I think the latter makes sense, that's exactly what was done the last time
this came up in [49269] / #51594, before being reverted in [49566]. Looks
like [https://github.com/WordPress/wordpress-develop/pull/3098 PR #3098]
goes that route too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39210#comment:61>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list