[wp-trac] [WordPress Trac] #27406: Widget Customizer: Organize all widget area sections into a meta customizer section

WordPress Trac noreply at wordpress.org
Wed Jun 11 21:11:32 UTC 2014


#27406: Widget Customizer: Organize all widget area sections into a meta customizer
section
-------------------------+-----------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Widgets      |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui, javascript
-------------------------+-----------------------------

Comment (by celloexpressions):

 Replying to [comment:15 westonruter]:
 > It seems to me that subsections are more in line with other constructs
 in WP core. For example, posts can have other posts as parents, terms have
 term parents, and admin bar nodes have node parents. However, a
 "customizer supersection" would be a completely different thing than a
 "customizer section".
 I think there are two potential implementation approaches:
 - Parent and children sections, both are `WP_Customize_Section`, but with
 special handling for items that have children. Matches several existing
 constructs in core. Need to figure out whether parent sections can have
 both sections and controls as direct "children". Children defined with a
 `parent` arg.
 - Something like `WP_Customize_Page` which would extend
 `WP_Customize_Section` but be a collection of sections instead of
 controls. Fits with the relationship of controls being children of
 sections, but not with other core constructs. Children defined with a
 `page`-like arg. Need to determine the best name for this.

 Basically, there's going to be a layer of parent/children-type items
 sharing a hierarchical level either way. Either sections and pages are
 displayed together or sections and controls are.

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


More information about the wp-trac mailing list