Warning in WP 6.7 RC3
-
Your plugin throws the following warning in WP 6.7 RC3 with
define('WP_DEBUG', true);
:Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info 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 /xxxxxx/wp-includes/functions.php on line 6087
You should change both instances of this line:$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
to:
$this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' );
- You must be logged in to reply to this topic.