Translation related notice after updating to WP 6.7
-
Hi,
After updating to WP 6.7 I’m getting this notice:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the mollie-payments-for-woocommerce 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.
I notice that multiple plugins have this error after WP was updated.
I think you can simply remove the loading of text domain from the plugin, because WP nowadays checks for and loads translations itself. Function
load_plugin_textdomain
is present in these files:
src/Activation/ActivationModule.php
vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-functions.jsonGuido
- You must be logged in to reply to this topic.