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

WordPress Trac noreply at wordpress.org
Tue Jan 21 11:42:35 UTC 2025


#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 has-dev-note  |     Focuses:
------------------------------------+-------------------------

Comment (by swissspidy):

 In [changeset:"59670" 59670]:
 {{{
 #!CommitTicketReference repository="" revision="59670"
 I18N: Set textdomain registry information before loading plugins/theme.

 This way, warnings for early translation calls can be emitted that aren't
 attached to any hook.

 Follow-up to [59461].

 Props swissspidy.
 Fixes #62244.See #44937.
 }}}

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


More information about the wp-trac mailing list