[wp-trac] [WordPress Trac] #34114: Remove the requirement to call load_plugin_textdomain() or load_theme_textdomain()

WordPress Trac noreply at wordpress.org
Fri Aug 5 22:58:50 UTC 2016


#34114: Remove the requirement to call load_plugin_textdomain() or
load_theme_textdomain()
---------------------------------------------+-------------------------
 Reporter:  johnbillion                      |       Owner:  swissspidy
     Type:  enhancement                      |      Status:  closed
 Priority:  high                             |   Milestone:  4.6
Component:  I18N                             |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-------------------------

Comment (by leemon):

 I'm testing 4.6RC in a dev site. A private plugin I developed is no longer
 loading its .mo files from the plugin's language folder.

 {{{
 add_action( 'plugins_loaded', 'my_plugins_loaded' );
 function my_plugins_loaded() {
     load_plugin_textdomain( 'domain', false, dirname( plugin_basename(
 __FILE__ ) ) .  '/languages' );
 }
 }}}

 I had no issues in 4.5.3. Do I have to change the way I load the plugin's
 .mo files, now? Any help would be appreciated.

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


More information about the wp-trac mailing list