[wp-trac] [WordPress Trac] #29758: Contextual Customizer Panels and Sections
WordPress Trac
noreply at wordpress.org
Fri Sep 26 03:24:10 UTC 2014
#29758: Contextual Customizer Panels and Sections
------------------------------+-----------------------
Reporter: celloexpressions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.1
Component: Customize | Version: 4.0
Severity: normal | Keywords: has-patch
Focuses: javascript |
------------------------------+-----------------------
This is almost a bug, as most developers expect it to be present. The
reason we haven't done it yet is that there is no JS API for sections or
panels (which were based on sections). Now that #28709 is happening
(probably in 4.1), we can complete the contextual Customizer objects API
by adding support for `active_callback` to panels and sections.
I have a starter patch for the PHP side of the API, essentially porting
the relevant sections from `WP_Customize_Control` to `WP_Customize_Panel`
and `WP_Customize_Section`. Once #28709 happens, we can add the JS side in
here as well. API-wise, contextual sections and panels should work
identically to contextual controls, with the three means of adding them
(note that custom panels and custom sections work, just like custom
controls).
See #27993.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29758>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list