Opened 7 years ago
Closed 4 years ago
#43777 closed enhancement (duplicate)
Refactor Customizer expandable section JS for ease of reuse for core, themes, plugins
Reported by: | joyously | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | |
Focuses: | javascript | Cc: |
Description
In the Customizer, the widgets section and the menu section have expandable portions. This code seems to be duplicated, and yet not reusable for themes/plugins to easily create expandable portions.
This should be part of the object inheritance for the Core Customizer objects.
Same question asked at WPSE in early 2016: https://wordpress.stackexchange.com/questions/214189/
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is a duplicate of #36733, and the decision there is to not address this in core for now, since the widgets version is now using the block editor inserter.
It would be great to see someone create a reusable section class for this, that could be reused in various plugins as needed.