diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 96917c7c59..8c86ed7f92 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -3721,17 +3721,7 @@ function wp_get_code_editor_settings( $args ) { } } - if ( 'text/css' === $type ) { - $settings['codemirror'] = array_merge( - $settings['codemirror'], - array( - 'mode' => 'css', - 'lint' => true, - 'autoCloseBrackets' => true, - 'matchBrackets' => true, - ) - ); - } elseif ( 'text/x-scss' === $type || 'text/x-less' === $type || 'text/x-sass' === $type ) { + if ( in_array( $type, array( 'text/css', 'text/x-scss', 'text/x-less', 'text/x-sass' ), true ) ) { $settings['codemirror'] = array_merge( $settings['codemirror'], array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 9fd75f348f..407e8ff2d5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-beta1-47304'; +$wp_version = '5.4-beta1-47305'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.