Translation loading too early for WordPress 6.7
-
Since upgrading to WordPress 6.7 I’m getting the following error on my development system where I have debug enabled:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the the-events-calendar 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 /var/www/html/wp-includes/functions.php on line 6114
I think this is related to the internalization improvements in WordPress 6.7 and specifically the check on “translations are loaded too early”: https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/
I’ve tracked this down to a couple of places in the code:
- calling esc_html__ in Global_Elements::setup_arguments and setup_content_headings
- calling __ in Tribe__Events__Aggregator__CLI__Service_Provider::register
There may well be others that I’ve not reached.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.