WordPress 6.7, which is likely to be released on November 12, 2024, changes the way translations are loaded, aligning with best practices for internationalization. This shift affects how and when translation strings should be triggered, aiming to prevent potential issues that arise from loading translations too early.
However, as the plugin ecosystem adjusts, you may encounter warning notices, particularly if you’re using the forthcoming WooCommerce 9.4 with WordPress 6.7.
These notices may look like this:
_load_textdomain_just_in_time was called incorrectly. Translation loading for the <PLUGIN> domain was triggered 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 /srv/htdocs/wp-includes/functions.php on line 6087.
WooCommerce-Specific Context
In WooCommerce, we’ve proactively made changes in version 9.4 to address early translation loading in light of WordPress 6.7’s new practices. While these updates mitigate most issues, some users may still encounter debug notices under certain configurations, especially when WooCommerce is running alongside other plugins and extensions.
What You Can Do to Minimize Impact
For production sites, to avoid seeing these notices disrupt frontend functionality, we recommend setting WP_DEBUG_DISPLAY
to false
, unless you are actively troubleshooting another issue. This prevents notices from displaying and breaking some functionalities.
For troubleshooting or development environments where notices are filling logs, you might want to temporarily suppress these notices with the following snippet:
add_filter( 'doing_it_wrong_trigger_error', '__return_false' );
Monitoring and Future Updates
We’re actively monitoring support channels and will provide updates or maintenance releases if further mitigation is needed. If you encounter specific issues related to translation loading, don’t hesitate to reach out.
Thank you for your understanding and patience as we all adjust to these changes in WordPress 6.7.
Leave a Reply