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:11:04 +01:00
parent 4fe563a3db
commit 907a0eebde

View File

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