[wp-trac] [WordPress Trac] #34213: Change priority for loading theme/plugin translations

WordPress Trac noreply at wordpress.org
Tue May 10 18:49:23 UTC 2016

#34213: Change priority for loading theme/plugin translations
 Reporter:  sebastian.pisula  |       Owner:  swissspidy
     Type:  enhancement       |      Status:  closed
 Priority:  high              |   Milestone:  4.6
Component:  I18N              |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
Changes (by swissspidy):

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


 In [changeset:"37414"]:
 #!CommitTicketReference repository="" revision="37414"
 I18N: Reverse the order of loading plugin and theme translations.

 `load_theme_textdomain()`, `load_plugin_textdomain()` and
 `load_muplugin_textdomain()` now try to load the .mo file from the `wp-
 content/languages` directory first. After the introduction of language
 packs, translation files are more likely to be located there.

 Props swissspidy, sebastian.pisula.
 Fixes #34213.

Ticket URL: <https://core.trac.wordpress.org/ticket/34213#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list