[wp-trac] [WordPress Trac] #62462: Reconsider _doing_it_wrong warning when loading translations early

WordPress Trac noreply at wordpress.org
Wed Dec 18 01:18:35 UTC 2024


#62462: Reconsider _doing_it_wrong warning when loading translations early
-------------------------------+---------------------
 Reporter:  TimothyBlynJacobs  |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  6.7.2
Component:  I18N               |     Version:  6.7
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+---------------------

Comment (by brianhogg):

 @swissspidy Thanks for the detail, much appreciated!

 I believe plugins like Loco Translate operate in a similar way, and the
 unload was added to account for certain translation plugins that specify
 custom language file locations. I'll re-test if the unload is still
 necessary. Regardless, I believe we've fixed the majority if not all of
 the instances where translation strings are used before `init` in the
 plugins I manage.

 Will share any other examples I see either here or on a separate ticket
 with reference to [https://core.trac.wordpress.org/changeset/59157 59157].

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


More information about the wp-trac mailing list