Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50787, comment 8


Ignore:
Timestamp:
10/14/2020 10:00:09 PM (4 years ago)
Author:
hellofromTonya
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50787, comment 8

    initial v1  
    1515
    1616Each time the function is called, the `$strings` array rebuilds. This means each `__()` has to run again, ie there are 12 of them. Is this necessary? Do we need to retranslate and rebuild the array each time the function is invoked?
     17
     18We can use memoization for a tiny peformance boost.