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

WordPress Trac noreply at wordpress.org
Tue Nov 19 09:34:43 UTC 2024


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

Comment (by domainsupport):

 Replying to [comment:6 kowsar89]:
 > @domainsupport I'm using this workaround for now:
 https://gist.github.com/kowsar89/ed30f2b7abc5d4784ba4b05503c70fe0

 Thanks for that. Although that's a better solution than the one I'd seen
 which instead turns **all** "doing it wrong" errors off, this still
 doesn't work in some instances. I'm assuming perhaps because
 `add_action()` is loaded on / after `plugins_loaded` and perhaps somehow
 translations are sometimes attempted to be loaded even earlier than that
 so it's still to late to catch the notification? That's just a hunch.

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


More information about the wp-trac mailing list