From 9851d1f488a626a252f5584c6553015b29cba96c Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 25 Oct 2023 14:43:09 +0200 Subject: [PATCH] fixing translation bug --- includes/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/init.php b/includes/init.php index bed60f2..d4e718f 100644 --- a/includes/init.php +++ b/includes/init.php @@ -68,7 +68,7 @@ function tailpress_enqueue_scripts() 'yes' => __('Oui', 'homegrade-theme__texte-fonctionnel'), 'no' => __('Non', 'homegrade-theme__texte-fonctionnel'), 'template_directory_uri' => get_template_directory_uri(), - 'current_thematique' => get_the_terms(get_the_ID(), 'thematiques')[0], + 'current_thematique' => get_the_terms(get_the_ID(), 'thematiques')[0] ?? null, ); wp_localize_script('main-app-js', 'mainAppJsDynamicDatas', $main_app_js_dynamic_datas);