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

WordPress Trac noreply at wordpress.org
Tue Nov 26 12:46:16 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 apermo):

 In case this will be reverted, I suggest to keep the code, and just have a
 condition around it. So that `production` environments would not see this,
 but at least `development` would get to see this notice. So that plugin
 and theme developers can fix their code, before it is added again.

 In our case, we have a sentry logging all notices etc on production, we
 have implemented a workaround, to suppress the notice, but there will be
 other companies which are spamming their error logs, or worse the frontend
 with this.

 I think reverting is a valid option, but assuming it will come back,
 developers should be made aware of the change, at least on `development`

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


More information about the wp-trac mailing list