[wp-trac] [WordPress Trac] #54561: Avoid translating several times widget media default strings
WordPress Trac
noreply at wordpress.org
Mon Apr 4 07:38:37 UTC 2022
#54561: Avoid translating several times widget media default strings
-------------------------+--------------------------
Reporter: Chouby | Owner: audrasjb
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 6.0
Component: Widgets | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
-------------------------+--------------------------
Comment (by Chouby):
The usages I remember having seen for `switch_to_locale()` are for sending
emails, creating documents such as PDF invoices and displaying the admin
bar in a different language than the main language on frontend.
I don't foresee a usage which wpuld require to switch the locale before
displaying the backend of widgets.
However, if we want to be on the safe side, then it would indeed be
necessary to reset the static variables on `change_locale`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54561#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list