Translations Loading Too Early (Triggers WordPress 6.8 Notice)
-
Hi Team,
I’m currently using your plugin Secure Custom Fields on my WordPress site, and since updating to WordPress 6.8, the plugin has been triggering repeated PHP notices related to translation loading.
Here’s the notice from the debug log:
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thesecure-custom-fieldsdomain was triggered too early. Translations should be loaded at theinitaction or later.This message appears on every page load and clutters the debug log. It seems the plugin is attempting to load translations too early in the execution flow — possibly during plugin load or before the
inithook. Suggested Fix (per WordPress standards):add_action('init', function() { load_plugin_textdomain('secure-custom-fields', false, dirname(plugin_basename(__FILE__)) . '/languages/'); });Would you kindly look into this and release a fix in the next update? This will ensure better compatibility with WordPress 6.8 and reduce unnecessary log noise.
Thanks for your work on the plugin!
Best regards,
Supriya Kanjilal
The topic ‘Translations Loading Too Early (Triggers WordPress 6.8 Notice)’ is closed to new replies.