[wp-trac] [WordPress Trac] #44937: Add _doing_it_wrong to load_plugin_textdomain
WordPress Trac
noreply at wordpress.org
Mon Nov 18 16:45:34 UTC 2024
#44937: Add _doing_it_wrong to load_plugin_textdomain
------------------------------------+-------------------------
Reporter: garrett-eclipse | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: I18N | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-dev-note | Focuses:
------------------------------------+-------------------------
Comment (by TimothyBlynJacobs):
Without some mechanism similar to `wp_load_translations_early` this seems
too agressive to always warn on this.
The use case is where a plugin ''does'' want to kill the request early.
Previously, the messages could at least be translated into the locale of
the site, even if the user was not loaded yet. But now, it seems plugins
have no choice but to output error messages in english if they must
communicate to the user before `init`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44937#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list