[wp-trac] [WordPress Trac] #62244: Just-in-time translation loading for plugins/themes not in the directory

WordPress Trac noreply at wordpress.org
Tue Jan 21 10:58:45 UTC 2025


#62244: Just-in-time translation loading for plugins/themes not in the directory
--------------------------------------+-------------------------
 Reporter:  swissspidy                |       Owner:  swissspidy
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.8
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+-------------------------
Changes (by swissspidy):

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


Comment:

 The registry call should happen before the plugin is loaded, so that the
 following case also triggers a warning:

 {{{#!php
 <?php
 /*
  * Plugin Name: Test
  * Domain Path: /languages
  * Text Domain: test
  */

 __( 'Test 1', 'test' ); // This should trigger a warning.

 }}}

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


More information about the wp-trac mailing list