Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35653 closed defect (bug) (duplicate)

Calling `load_plugin_textdomain( 'textdomain' )` shouldn't cause an extra file stat call

Reported by: dd32 Owned by:
Priority: normal Milestone:
Component: I18N Version:
Severity: normal Keywords:
Cc: Focuses:

Description

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.

Change History (3)

#3 @ocean90
11 years ago

  • Milestone Future Release
  • Resolution → duplicate
  • Status new → closed

Duplicate of #34213.

Note: See TracTickets for help on using tickets.