FIX using the safe function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-10-16 12:21:33 +02:00
parent 7338d58e6e
commit 02cf9c57f1
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ $thematiques = get_terms(array(
<?php while ($articles->have_posts()) : $articles->the_post(); ?> <?php while ($articles->have_posts()) : $articles->the_post(); ?>
<?php get_template_part('template-parts/articles/card-article', null, array( <?php get_template_part('template-parts/articles/card-article', null, array(
'date' => get_the_date(), 'date' => get_the_date(),
'ThumbnailFocalPosition' => get_thumbnail_focal_point_css(), 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
'image' => get_the_post_thumbnail_url(), 'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(), 'link' => get_the_permalink(),
'ID' => get_the_ID(), 'ID' => get_the_ID(),

View File

@ -66,7 +66,7 @@ $thematiques = get_terms(array(
'image' => get_the_post_thumbnail_url(), 'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(), 'link' => get_the_permalink(),
'ID' => get_the_ID(), 'ID' => get_the_ID(),
'ThumbnailFocalPosition' => get_thumbnail_focal_point_css(), 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
)); ?> )); ?>
<?php endwhile; ?> <?php endwhile; ?>
<?php endif; ?> <?php endif; ?>