[wp-trac] [WordPress Trac] #43096: Reduce redundant calls to translate()
WordPress Trac
noreply at wordpress.org
Fri May 5 11:03:09 UTC 2023
#43096: Reduce redundant calls to translate()
-------------------------------------------+------------------------------
Reporter: superdav42 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh close | Focuses: performance
-------------------------------------------+------------------------------
Comment (by SergeyBiryukov):
Hi there, thanks for the ticket! Sorry it took so long for someone to get
back to you.
As noted above, for `WP_Locale` this was addressed in [52956] / #54564.
Other changes make sense too at a glance, but they make things less
flexible for switching between locales during the request, unit testing,
and might lead to an issue where post types or taxonomy labels cannot be
retrieved in the correct locale after the initial call, so maybe we should
look at other ways to optimize translations instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43096#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list