[wp-trac] [WordPress Trac] #46396: Add Turn Off Option For Custom CSS in Customizer

WordPress Trac noreply at wordpress.org
Thu Mar 21 02:57:30 UTC 2019


#46396: Add Turn Off Option For Custom CSS in Customizer
-----------------------------+----------------------
 Reporter:  mwarbinek        |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Customize        |     Version:  4.7
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+----------------------
Changes (by celloexpressions):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 WordPress core and its philosophies do not generally provide user-facing
 settings to enable and disable features. The core customize API provides
 the capability to disable any feature granularly. A plugin (or theme) can
 call something like:

 {{{
 $wp_customize->remove_section( 'custom_css' );
 }}}

 And that should prevent the feature from loading. It could also de-enqueue
 scripts or more-deeply remove the feature. Alternatively, a plugin could
 reassign the `custom_css` setting to a textarea control instead of the
 core code editor control. Old versions of the Modular Custom CSS plugin
 enabled this feature in a similarly simplified way.

 Closing, as this is plugin territory. Please feel free to continue
 discussion in this closed ticked or on the WordPress support forums.
 Please also open more-specific tickets for any specific issues or
 potential improvements for the custom CSS feature.

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


More information about the wp-trac mailing list