[wp-trac] [WordPress Trac] #34843: Customizer: allow themes in the Customizer to be disabled by plugins
WordPress Trac
noreply at wordpress.org
Fri Dec 4 05:57:30 UTC 2015
#34843: Customizer: allow themes in the Customizer to be disabled by plugins
-------------------------+-----------------------------
Reporter: mattwiebe | Owner: mattwiebe
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------+-----------------------------
Changes (by westonruter):
* keywords: => needs-patch
* owner: => mattwiebe
* version: => trunk
* status: new => assigned
* milestone: Awaiting Review => Future Release
Comment:
@mattwiebe Makes sense to me. It's not quite as straightforward since
there isn't a dedicated class for managing themes in the Customizer. But
what when the filter for `customize_loaded_components` runs, the return
value containing the array of component slugs could be stored in a
protected class variable on `WP_Customize_Manager`. Then when the
sections, controls, and settings for themes are to be registered, it can
check to see if the array filtered by `customize_loaded_components`
contains “themes” or not. If not, then they wouldn't get registered.
That's the implementation method that comes to mind.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34843#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list