Error loading textdomain since WP 6.7
-
Hello,
Since WP 6.7 update, a warning appears in top of each page (tested with plugin v4.5.1 to v5.0.2) :
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the contact-form-7-dynamic-text-extension domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /path/to/wp-includes/functions.php on line 6114
It seems some translations are loaded before init action.
I’ve tried to modified the code to use action ‘init’ in place of ‘plugins_loaded’ but it seems not sufficient.
Also, it seems there is no use of translation loading anywhere in the code, like ‘load_plugin_textdomain’.
Please can you look at it ?
It seems many plugins for WP throw this error, because of a new test in WP 6.7.
Some information here :
Thank you !
- You must be logged in to reply to this topic.