From 10b459f8e8bc99f2c4fa21983d4223e91d8a161a Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sun, 21 Jan 2018 08:00:42 +0000 Subject: [PATCH] Code Editor: Disable `attr-value-double-quotes` HTMLHint rule since too strict for user input. Using single-quoted attribute values is not in any way invalid HTML. Amends [41376]. Props sasiddiqui. See #12423. Fixes #42802. git-svn-id: https://develop.svn.wordpress.org/trunk@42531 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 4fda9c725b..a089fa223e 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -3250,7 +3250,7 @@ function wp_enqueue_code_editor( $args ) { 'htmlhint' => array( 'tagname-lowercase' => true, 'attr-lowercase' => true, - 'attr-value-double-quotes' => true, + 'attr-value-double-quotes' => false, 'doctype-first' => false, 'tag-pair' => true, 'spec-char-escape' => true,