[wp-trac] [WordPress Trac] #36778: Parent theme editor-style.css cannot be disabled
WordPress Trac
noreply at wordpress.org
Tue Jun 14 15:58:27 UTC 2016
#36778: Parent theme editor-style.css cannot be disabled
-----------------------------+-----------------------------
Reporter: matthewmcvickar | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration
-----------------------------+-----------------------------
Comment (by ocean90):
Are you sure that you're running your code '''after''' the parent theme
has registered the editor stylesheet?
Assuming that the parent theme registers the stylesheet at
`after_setup_theme` the following should work:
{{{#!php
<?php
add_action( 'after_setup_theme', function() {
remove_editor_styles();
}, 999 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36778#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list