[wp-trac] [WordPress Trac] #37997: l10n since wp 4.6+

WordPress Trac noreply at wordpress.org
Fri Sep 9 06:16:50 UTC 2016


#37997: l10n since wp 4.6+
---------------------------------------+--------------------------
 Reporter:  sharkomatic                |       Owner:
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  4.6.2
Component:  I18N                       |     Version:  4.6
 Severity:  normal                     |  Resolution:
 Keywords:  needs-testing needs-patch  |     Focuses:  performance
---------------------------------------+--------------------------

Comment (by swissspidy):

 > The problem is that if no translation files exist for that textdomain,
 `_load_textdomain_just_in_time()` goes through the entire process each
 time it is called because the domain is never being added to the
 `$l10n_unloaded` array

 That's not how this array is being used. It is only filled when explicitly
 calling `unload_textdomain()`.

 We should rather change `get_translations_for_domain()` so that it returns
 `$noop_translations` after the first failed attempt.

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


More information about the wp-trac mailing list