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

WordPress Trac noreply at wordpress.org
Mon Nov 18 21:47:32 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):

 It isn't a hypothetical use case, but one I'm running into with one of the
 [http://wordpress.org/plugins/better-wp-security/ plugins] I maintain. The
 fix that I've made, yet to release, is to just output those messages in
 English.

 How widespread it is beyond me, I don't know. While it is certainly less
 prevalent than plugins unconditionally translating strings, it's certainly
 not 0. And I don't think a `_doing_it_wrong` notice should have false
 positives for valid use cases. General advice should be communicated in
 developer docs.

 From what I can tell, that'd have to be done at the `_doing_it_wrong`
 level. `doing_it_wrong_run` always triggers which is a bit unfortunate as
 well.

 If the consensus is that the noise is worth the gain, then this can of
 course be closed. But I wanted to get at least get a conversation going in
 one place.

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


More information about the wp-trac mailing list