From 94fab461511c2fc4cf8e863f623d4501dda2a371 Mon Sep 17 00:00:00 2001 From: Danail Date: Thu, 23 Nov 2023 15:10:02 +0200 Subject: [PATCH 1/4] Allow setting the "autocomplete" attribute on Text fields --- core/Field/Text_Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Field/Text_Field.php b/core/Field/Text_Field.php index 3decc211..a3af3732 100644 --- a/core/Field/Text_Field.php +++ b/core/Field/Text_Field.php @@ -12,5 +12,5 @@ class Text_Field extends Field { /** * {@inheritDoc} */ - protected $allowed_attributes = array( 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type', 'is', 'inputmode' ); + protected $allowed_attributes = array( 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type', 'is', 'inputmode', 'autocomplete' ); } From 802b609a262c8b1dacc02cde9c840d18b7969648 Mon Sep 17 00:00:00 2001 From: Danail Date: Thu, 23 Nov 2023 15:10:17 +0200 Subject: [PATCH 2/4] Allow setting the "autocomplete" attribute on Textarea fields --- core/Field/Textarea_Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Field/Textarea_Field.php b/core/Field/Textarea_Field.php index caac0b23..b84df4ba 100644 --- a/core/Field/Textarea_Field.php +++ b/core/Field/Textarea_Field.php @@ -10,7 +10,7 @@ class Textarea_Field extends Field { /** * {@inheritDoc} */ - protected $allowed_attributes = array( 'maxLength', 'minLength', 'placeholder', 'readOnly', 'is' ); + protected $allowed_attributes = array( 'maxLength', 'minLength', 'placeholder', 'readOnly', 'is', 'autocomplete' ); /** * Number of rows (affects textarea height) From bd049676508aa65dbbfb9c0f47902d7faeb778be Mon Sep 17 00:00:00 2001 From: Danail Date: Thu, 23 Nov 2023 15:46:29 +0200 Subject: [PATCH 3/4] Bump v3.6.3 --- config.php | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index be39ddab..779affd2 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ # Define version constant if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { - define( __NAMESPACE__ . '\VERSION', '3.6.2' ); + define( __NAMESPACE__ . '\VERSION', '3.6.3' ); } # Define root directory diff --git a/package.json b/package.json index c1ecea00..36ddee22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-fields", - "version": "3.6.2", + "version": "3.6.3", "description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.", "directories": { "test": "tests" From 33654fe2638dee040a8a5685cbfc8f014805fc48 Mon Sep 17 00:00:00 2001 From: Danail Date: Tue, 28 Nov 2023 15:24:02 +0200 Subject: [PATCH 4/4] Revert "Bump v3.6.3" This reverts commit bd049676508aa65dbbfb9c0f47902d7faeb778be. --- config.php | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 779affd2..be39ddab 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ # Define version constant if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { - define( __NAMESPACE__ . '\VERSION', '3.6.3' ); + define( __NAMESPACE__ . '\VERSION', '3.6.2' ); } # Define root directory diff --git a/package.json b/package.json index 36ddee22..c1ecea00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-fields", - "version": "3.6.3", + "version": "3.6.2", "description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.", "directories": { "test": "tests"