[wp-trac] [WordPress Trac] #35653: Calling `load_plugin_textdomain( 'textdomain' )` shouldn't cause an extra file stat call
WordPress Trac
noreply at wordpress.org
Fri Jan 29 03:32:08 UTC 2016
#35653: Calling `load_plugin_textdomain( 'textdomain' )` shouldn't cause an extra
file stat call
--------------------------+----------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+----------------------------
Thanks to WordPress.org Language packs, plugins no longer need to ship
with translations nor a languages directory.
However, if a plugin simply calls `load_plugin_textdomain( 'textdomain'
);` it causes WordPress to look for `WP_PLUGINS_DIR/textdomain-locale.mo`.
I think we should be able to avoid looking for a translation file in this
case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35653>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list