[wp-trac] [WordPress Trac] #62462: Reconsider _doing_it_wrong warning when loading translations early
WordPress Trac
noreply at wordpress.org
Tue Dec 17 19:06:12 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 swissspidy):
I already mentioned above that the issue with that cron example was the
`plugins_loaded` part, not the scheduling part. I also haven't seen any
other reports about this causing an issue with `register_activation_hook`,
so if you could share a code example for that, that would be helpful.
Also, possible workarounds for security plugins and other cases were
already mentioned, and `add_filter( 'doing_it_wrong_trigger_error',
'__return_false' );` always works as a last resort.
And to clarify, this change doesn't "break translations". It's just a
notice. Translations still continue to be loaded, even if you do it too
early.
After 6.7 things seem to have calmed down quite a bit and most big plugins
which were previously doing it wrong fixed their code for the better. At
this point I don't see why this should be outright reverted.
Sure, we can fix messaging and improve edge cases, but so far nothing
indicates a revert to me. Which is why I previously changed the ticket
title already.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62462#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list