fix on anchor ternary
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2024-12-04 16:03:11 +01:00
parent 8092e96ca1
commit 4fe563a3db

View File

@ -1,5 +1,5 @@
<?php
$anchor = isset($attributes['anchor']) && !empty($attributes['anchor']) ? esc_html($attributes['anchor']) : ($relatedPostId ? "post-content-container-" . $relatedPostId : '');
$anchor = isset($attributes['anchor']) && !empty($attributes['anchor']) ? esc_html($attributes['anchor']) : "block-page-redirector";
$relatedPageName = get_field('related_page') ?? null;
$subtitle = get_field('subtitle') ?? "";