[wp-trac] [WordPress Trac] #44937: Add _doing_it_wrong to load_plugin_textdomain

WordPress Trac noreply at wordpress.org
Wed Oct 2 13:58:16 UTC 2024


#44937: Add _doing_it_wrong to load_plugin_textdomain
--------------------------------------+-------------------------
 Reporter:  garrett-eclipse           |       Owner:  swissspidy
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.7
Component:  I18N                      |     Version:  4.7
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+-------------------------

Comment (by swissspidy):

 Nothing changes for custom plugins. Just make sure to call
 `load_plugin_textdomain()`/`load_theme_textdomain()` only on a later hook
 like `init`, not before.

 I actually just merged [59157] now for 6.7 Beta 2, so even if you do not
 change anything in your custom plugin, most likely you will not get a
 warning anymore because translations will be delayed.

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


More information about the wp-trac mailing list