Translation domain “better-wp-security” being loaded too early
-
Hi there,
Since WordPress 6.7 was released, I’m seeing the following PHP notice repeatedly in my debug.log file:
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly.
Translation loading for thebetter-wp-securitydomain 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 theinitaction or later.This seems to indicate that the plugin is attempting to load translation files (.mo) too early in the WordPress execution lifecycle, likely before the init hook.
I’m running the latest version of both WordPress and the plugin. Functionally everything seems fine, but this notice clutters the debug log and might hint at future compatibility issues.
Would it be possible to adjust the timing of the translation loading to comply with the newer WordPress standards?
Thanks in advance!
You must be logged in to reply to this topic.