From 7d8ddb28d88033400e5496dadd2ae297c527dc75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Sai=CC=88kali?= Date: Mon, 9 Mar 2020 13:52:26 +0100 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20allow=20'list'=20attr?= =?UTF-8?q?ibute=20on=20text=20fields.=20Fixes=20#860?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 f48b09262..843b27a04 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( 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type' ); + protected $allowed_attributes = array( 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type' ); } From 7ece00f55adbdc0e8cadd134f150f99b94f3856b Mon Sep 17 00:00:00 2001 From: lstoyanoff Date: Wed, 22 Apr 2020 10:42:14 +0300 Subject: [PATCH 2/3] fix: cf assets context loading --- core/Loader/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Loader/Loader.php b/core/Loader/Loader.php index 53642352f..2b30569e5 100644 --- a/core/Loader/Loader.php +++ b/core/Loader/Loader.php @@ -140,7 +140,7 @@ public function enqueue_media_browser() { * @return string */ protected function get_assets_context() { - return wp_script_is( 'wp-element' ) ? 'gutenberg' : 'classic'; + return get_current_screen()->is_block_editor() ? 'gutenberg' : 'classic'; } /** From 73c5cb6b477772cc64db172f2e911a5062a15ef9 Mon Sep 17 00:00:00 2001 From: lstoyanoff Date: Wed, 22 Apr 2020 10:56:42 +0300 Subject: [PATCH 3/3] Bump v3.1.18 --- config.php | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 7ee7d3d3e..7c5c4c53a 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ # Define version constant if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { - define( __NAMESPACE__ . '\VERSION', '3.1.17' ); + define( __NAMESPACE__ . '\VERSION', '3.1.18' ); } # Define root directory diff --git a/package.json b/package.json index 24c624749..c8c08bfad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-fields", - "version": "3.1.17", + "version": "3.1.18", "description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.", "directories": { "test": "tests"