From 83fe8187325b1bdf0a5f3d0ab1c30276b9817e48 Mon Sep 17 00:00:00 2001 From: NiclasNorin Date: Mon, 13 May 2024 15:49:08 +0200 Subject: [PATCH] fix: remove unused acf slider field --- source/php/AcfFields/json/mod-slider.json | 70 --------------------- source/php/AcfFields/php/mod-slider.php | 74 +---------------------- 2 files changed, 2 insertions(+), 142 deletions(-) diff --git a/source/php/AcfFields/json/mod-slider.json b/source/php/AcfFields/json/mod-slider.json index bfab6ddcf..490eb6659 100644 --- a/source/php/AcfFields/json/mod-slider.json +++ b/source/php/AcfFields/json/mod-slider.json @@ -411,41 +411,6 @@ "allow_null": 0, "allow_archives": 1, "multiple": 0 - }, - { - "key": "field_60db1cc88b16d", - "label": "Description", - "name": "link_url_description", - "aria-label": "", - "type": "text", - "instructions": "Describe the purpose of the link, or what visitors can expect to find when they click on it (not shown).", - "required": 1, - "conditional_logic": [ - [ - { - "field": "field_56fa82a2d464d", - "operator": "==", - "value": "external" - } - ], - [ - { - "field": "field_56fa82a2d464d", - "operator": "==", - "value": "internal" - } - ] - ], - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "default_value": "", - "placeholder": "", - "prepend": "", - "append": "", - "maxlength": "" } ], "min": "", @@ -809,41 +774,6 @@ "allow_archives": 1, "multiple": 0, "allow_null": 0 - }, - { - "key": "field_646f745261c78", - "label": "Description", - "name": "link_url_description", - "aria-label": "", - "type": "text", - "instructions": "", - "required": 1, - "conditional_logic": [ - [ - { - "field": "field_56fa87ec3ace2", - "operator": "==", - "value": "internal" - } - ], - [ - { - "field": "field_56fa87ec3ace2", - "operator": "==", - "value": "external" - } - ] - ], - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "default_value": "", - "maxlength": "", - "placeholder": "", - "prepend": "", - "append": "" } ], "min": "", diff --git a/source/php/AcfFields/php/mod-slider.php b/source/php/AcfFields/php/mod-slider.php index bfb7a7f76..19248b1ee 100644 --- a/source/php/AcfFields/php/mod-slider.php +++ b/source/php/AcfFields/php/mod-slider.php @@ -416,42 +416,7 @@ 'allow_null' => 0, 'allow_archives' => 1, 'multiple' => 0, - ), - 10 => array( - 'key' => 'field_60db1cc88b16d', - 'label' => __('Description', 'modularity'), - 'name' => 'link_url_description', - 'aria-label' => '', - 'type' => 'text', - 'instructions' => __('Describe the purpose of the link, or what visitors can expect to find when they click on it (not shown).', 'modularity'), - 'required' => 1, - 'conditional_logic' => array( - 0 => array( - 0 => array( - 'field' => 'field_56fa82a2d464d', - 'operator' => '==', - 'value' => 'external', - ), - ), - 1 => array( - 0 => array( - 'field' => 'field_56fa82a2d464d', - 'operator' => '==', - 'value' => 'internal', - ), - ), - ), - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'default_value' => '', - 'placeholder' => '', - 'prepend' => '', - 'append' => '', - 'maxlength' => '', - ), + ) ), 'min' => '', 'max' => '', @@ -814,42 +779,7 @@ 'allow_archives' => 1, 'multiple' => 0, 'allow_null' => 0, - ), - 12 => array( - 'key' => 'field_646f745261c78', - 'label' => __('Description', 'modularity'), - 'name' => 'link_url_description', - 'aria-label' => '', - 'type' => 'text', - 'instructions' => '', - 'required' => 1, - 'conditional_logic' => array( - 0 => array( - 0 => array( - 'field' => 'field_56fa87ec3ace2', - 'operator' => '==', - 'value' => 'internal', - ), - ), - 1 => array( - 0 => array( - 'field' => 'field_56fa87ec3ace2', - 'operator' => '==', - 'value' => 'external', - ), - ), - ), - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'default_value' => '', - 'maxlength' => '', - 'placeholder' => '', - 'prepend' => '', - 'append' => '', - ), + ) ), 'min' => '', 'max' => '',