We’re encountering the following warning in our WordPress installation:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the legenda 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. (This message was added in version 6.7.0.)
Stack trace:
– _load_textdomain_just_in_time() – wp-includes/l10n.php:1378
– get_translations_for_domain() – wp-includes/l10n.php:1408
– translate() – wp-includes/l10n.php:194
– __() – wp-includes/l10n.php:306
It appears that translation functions are being called before the init hook, which is not recommended as of WordPress 6.7.0. This is likely due to a plugin or theme (possibly related to the “legenda” text domain) initializing translations too early in the loading process.















