mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Code Editor: Keep linting and its error reporting configured when lint option is changed dynamically.
Also explicitly disable `lint` option for SCSS and LESS. See #12423. git-svn-id: https://develop.svn.wordpress.org/trunk@41974 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3311,6 +3311,7 @@ function wp_enqueue_code_editor( $args ) {
|
||||
} elseif ( 'text/x-scss' === $type || 'text/x-less' === $type || 'text/x-sass' === $type ) {
|
||||
$settings['codemirror'] = array_merge( $settings['codemirror'], array(
|
||||
'mode' => $type,
|
||||
'lint' => false,
|
||||
'autoCloseBrackets' => true,
|
||||
'matchBrackets' => true,
|
||||
) );
|
||||
|
||||
Reference in New Issue
Block a user