From 3ca066dd5eb68836f73d413e362a6f83e7fc1124 Mon Sep 17 00:00:00 2001 From: scruffian Date: Tue, 13 Jun 2023 16:16:20 +0100 Subject: [PATCH] update the selector to only target some types --- lib/class-wp-theme-json-gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-wp-theme-json-gutenberg.php b/lib/class-wp-theme-json-gutenberg.php index 2e8e43ba4bc38..7d3f3c5d13bfe 100644 --- a/lib/class-wp-theme-json-gutenberg.php +++ b/lib/class-wp-theme-json-gutenberg.php @@ -510,7 +510,7 @@ class WP_Theme_JSON_Gutenberg { // The block classes are necessary to target older content that won't use the new class names. 'caption' => '.wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption', 'cite' => 'cite', - 'textInput' => 'textarea, input:where(:not([type=checkbox]):not([type=radio]):not([type=submit]))', + 'textInput' => 'textarea, input:where([type=email],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=tel],[type=url])', ); const __EXPERIMENTAL_ELEMENT_CLASS_NAMES = array(