[wp-trac] [WordPress Trac] #27993: Support for contexts in the Customizer
WordPress Trac
noreply at wordpress.org
Wed Jul 16 07:12:50 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):
I'm coming to this late, so apologies in advance if this has already been
addressed. A question regarding the following statement:
Replying to [comment:9 westonruter]:
> Ideally when all controls in a given section are not `active`, the
section would in general also collapse automatically. The same goes for
the new Customizer panels (#27406). However, there is currently no JS
models provided for managing the state of the Sections or Panels. I've
filed #28709 to introduce these models.
So that I'm clear about this enhancement, does this apply to both controls
and sections or only controls? `active_callback` currently works
beautifully with `add_control` but it does not seem to affect
`add_section`. I can see a case where entire sections are contextual, and
custom controls (say, five or so) inside of a context-dependent section
wouldn't need `active_callback` if the `add_section` call itself had
`active_callback` on it.
Again, sorry if I've missed something above or in other discussions. Want
to make sure that I'm clear on this change, as I'm already implementing
this against Core in a few themes. I'm a big fan of this enhancement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27993#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list