I’ve updated several sites with Vantage theme to WordPress 6.7 this morning and have lost translations on all of them.
Rerouting back to WP 6.6.2 resolves the problem.
I’ve narrowed it down to the language selection in function.php, which uses an old line code no longer supported in WP 6.7:
load_theme_textdomain( ‘YOURTEXTDOMAIN’, get_template_directory() . ‘/languages’ );
Change to:
load_textdomain( ‘YOURTEXTDOMAIN’, get_template_directory() . ‘/languages/’ . determine_locale() . ‘.mo’ );
The post Translation gone when updating to WP 6.7 and Vantage 1.20.27 appeared first on SiteOrigin.