[wp-trac] [WordPress Trac] #27993: Support for contexts in the Customizer
WordPress Trac
noreply at wordpress.org
Wed Jul 16 09:08:41 UTC 2014
#27993: Support for contexts in the Customizer
------------------------------+-----------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.0
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: ui, javascript
------------------------------+-----------------------------
Comment (by celloexpressions):
That would probably be how we'd want to do that - if the section is
hidden, all of the controls inside of it would also be hidden, and vice-
versa. But this isn't implemented at all for `add_section` or `add_panel`
yet - that'll come once we get an expanded JS API to support it, hopefully
in 4.1. For now, core support for contextual Customizer UI is limited to
controls.
In 4.0, you have to manually hide empty sections where all controls are
hidden, and although it's possible (widget areas do it), it's messy.
We'll likely try to use exactly the same API for contextual sections when
we do get there. Worth noting that when we do implement it for sections
we'll get it for panels with minimal extra work since panels are sections.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27993#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list