[wp-trac] [WordPress Trac] #62519: _doing_it_wrong misplaced in the _load_textdomain_just_in_time() function

WordPress Trac noreply at wordpress.org
Fri Nov 22 14:04:46 UTC 2024


#62519: _doing_it_wrong misplaced in the _load_textdomain_just_in_time() function
-----------------------------+-------------------------
 Reporter:  babelhalsupport  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  I18N             |     Version:  6.7
 Severity:  normal           |  Resolution:  worksforme
 Keywords:  has-patch        |     Focuses:
-----------------------------+-------------------------

Comment (by babelhalsupport):

 The erros is there.
 The plugins calls a translation (eg. ''__(...)'') and WordPress fails to
 load a language file, for the translation.
 This is definitely doing something wrong.
 This happens especially when calling ''__()'' before
 ''load_plugin_textdomain()''.
 Please reconsider, your statement.

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


More information about the wp-trac mailing list