[wp-trac] [WordPress Trac] #43096: Reduce redundant calls to translate()

WordPress Trac noreply at wordpress.org
Fri May 5 08:48:04 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
-------------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => has-patch needs-refresh close


Comment:

 At least for the WP_Locale class this has already been implemented in the
 meantime.
 For the other cases I am not particularly fond of using static variables
 for caching. That just makes testing and debugging a bit harder and
 decreases readability.

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


More information about the wp-trac mailing list