[wp-trac] [WordPress Trac] #27993: Support for contexts in the Customizer

WordPress Trac noreply at wordpress.org
Thu Jul 17 01:29:18 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 philiparthurmoore):

 Replying to [comment:20 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.

 Sounds great. Until a more section/panel-specific hiding mechanism is in
 place I think I'll hold off on trying to get too clever with sections that
 have controls that are all contextual. Seems like it'd be a lot of messy
 code, as you've said. Thanks for clearing everything up for me!

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


More information about the wp-trac mailing list