[wp-trac] [WordPress Trac] #44471: Theme Editor: Modern CSS is marked as errors by CodeMirror
WordPress Trac
noreply at wordpress.org
Tue Feb 18 04:38:17 UTC 2020
#44471: Theme Editor: Modern CSS is marked as errors by CodeMirror
--------------------------------------+---------------------
Reporter: ThemeZee | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.4
Component: Editor | Version: 4.9
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+---------------------
Changes (by skypressatx):
* keywords: needs-patch good-first-bug => good-first-bug has-patch
Comment:
Quick patch for this task.
In essence at `src/wp-includes/general-template.php:3729` I changed the
`lint` value to false. This impacts the `$settings['codemirror']` array,
which is already filterable via `wp_code_editor_settings`. If plugin
authors which to enable CSS linting, then they can use that filter to
override the (now) default `false` value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44471#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list