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

WordPress Trac noreply at wordpress.org
Tue Nov 19 20:07:58 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 TimothyBlynJacobs):

 > Do you have an issue on that plugin with a code reference so I can take
 a closer look? It‘s not clear to me why deferring until init

 @swissspidy It's kind of entangled. But for some issues, we were able to
 do this, or re-register on `init` to provide translations at that time.
 But the plugin contains firewall functionality, where we intentionally die
 early to prevent other plugins from running as early as mu-plugin load.

 > or temporary disabling the notice doesn‘t work for you.

 I wish there was a filter in `_load_textdomain_just_in_time` to control
 this. But yeah, if the consensus is to not adjust this, then I think we'd
 have to hook into `doing_it_wrong_trigger_error`.

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


More information about the wp-trac mailing list