[wp-trac] [WordPress Trac] #58035: Allow to short-circuit load_textdomain()

WordPress Trac noreply at wordpress.org
Fri Jun 16 12:56:18 UTC 2023


#58035: Allow to short-circuit load_textdomain()
---------------------------------------------+----------------------
 Reporter:  ocean90                          |       Owner:  ocean90
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.3
Component:  I18N                             |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+----------------------
Changes (by swissspidy):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55928" 55928]:
 {{{
 #!CommitTicketReference repository="" revision="55928"
 I18N: Allow to short-circuit `load_textdomain()`.

 Introduces a new `pre_load_textdomain` filter, which is useful for plugins
 to develop and test alternative loading/caching strategies for
 translations. This brings consistency with the existing
 `pre_load_script_translations` filter for JavaScript translations.

 Props ocean90, swissspidy.
 Fixes #58035.
 }}}

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


More information about the wp-trac mailing list