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

WordPress Trac noreply at wordpress.org
Thu Oct 24 15:35:02 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 has-dev-note  |     Focuses:
------------------------------------+-------------------------

Comment (by bobbingwide):

 @swisspidy Thanks for the clarification. I was being misled by your
 comment "The current user is normally set up in-between." I've followed
 through the code and can see the locale being set during
 `determine_locale()`, called from `load_default_textdomain()`.

 In my opinion, it's a pity that the "doing it wrong" message refers to an
 internal core function and not the user function that was actual the cause
 of the problem.

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


More information about the wp-trac mailing list