[wp-trac] [WordPress Trac] #36778: Parent theme editor-style.css cannot be disabled

WordPress Trac noreply at wordpress.org
Sun Feb 26 20:12:21 UTC 2017


#36778: Parent theme editor-style.css cannot be disabled
-------------------------------------+-----------------------------
 Reporter:  matthewmcvickar          |       Owner:
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:
Component:  Editor                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  administration
-------------------------------------+-----------------------------
Changes (by eclare):

 * keywords:  needs-patch => needs-patch 2nd-opinion
 * status:  closed => reopened
 * resolution:  worksforme =>


Comment:

 Just wanted to add that this isn't an edge case. At my company we're
 estimating about 20% of themes (at least premium ones) include faulty
 `add_editor_style()` without any way of disabling it (overloading in the
 child theme). It's a pain for developers. That aside, I'd add the
 `remove_editor_style()` function for consistency and since the `mce_css`
 filter feels hacky.

 We have dequeuing functions for scripts (styles), so it's only consistent
 that we add one for editor styles. Imho.

 Please post a 2nd opinion.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36778#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list