_load_textdomain_just_in_time function was called incorrectly
-
A new PHP Notice appears to have popped up with WordPress core v6.7+
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet 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 /code/web/wp/wp-includes/functions.php on line 6114The
load_plugin_textdomainshould probably be called ininitand notplugins_loadedasplugins_loadedis beforeinitand is too early for loading translations.https://developer.ww.wp.xz.cn/reference/hooks/plugins_loaded/
You can hide the notice by setting
WP_DEBUG=falseandWP_DEBUG_DISPLAY=false.
The topic ‘_load_textdomain_just_in_time function was called incorrectly’ is closed to new replies.