handling conditionnal anchors to avoid bugs
This commit is contained in:
parent
8d617f1fd4
commit
0063545bbc
|
|
@ -9,7 +9,7 @@ $customImageUrl = $attributes['imageUrl'] ?? null;
|
|||
$customImageAlt = $attributes['imageAlt'] ?? null;
|
||||
|
||||
$customTitle = $attributes['blockCustomTitle'] ?? null;
|
||||
$anchor = esc_html($attributes['anchor'])
|
||||
$anchor = isset($attributes['anchor']) ? esc_html($attributes['anchor']) : null;
|
||||
?>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ $customImageUrl = $attributes['imageUrl'] ?? null;
|
|||
$customImageAlt = $attributes['imageAlt'] ?? null;
|
||||
|
||||
$customTitle = $attributes['blockCustomTitle'] ?? null;
|
||||
$anchor = esc_html($attributes['anchor'])
|
||||
$anchor = isset($attributes['anchor']) ? esc_html($attributes['anchor']) : null;
|
||||
?>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user