Skip to content

Commit

Permalink
feat: remove supports_button_gtag notice
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliwenwenwen committed Mar 26, 2024
1 parent ca90fc5 commit 39785b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function safe_get_link_fields(array $params): array
return [];
}

if ($params['supports_button_gtag']) {
if (isset($params['supports_button_gtag']) && $params['supports_button_gtag']) {
$fields['grav_link_fields'][] = array(
'key' => 'field__' . '_' . $params['name'] . '_gtag',
'label' => $params['label'] . ' GTag',
Expand Down

0 comments on commit 39785b4

Please sign in to comment.