[wp-trac] [WordPress Trac] #27406: Widget Customizer: Organize all widget area sections into a meta customizer section
WordPress Trac
noreply at wordpress.org
Sun Jun 15 22:50:36 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
Component: Appearance | Release
Severity: normal | Version: 3.9
Keywords: has-patch dev-feedback needs- | Resolution:
testing ux-feedback | Focuses: ui,
| javascript
-------------------------------------------------+-------------------------
Comment (by celloexpressions):
[attachment:27406.2.parents.diff] implements the alternate approach, using
parent sections instead of a separate page object. This gives us support
for sections and parent sections being sorted in the same group of
priorities and support for controls as direct children of parent
sections/pages without additional work.
However, after doing both implementations I prefer the version with
`WP_Customize_Page` ([attachment:27406.2.diff]) for the following reasons:
- Once you play with it, it's pretty clear that supporting controls that
are direct children results in a really uncomfortable UX, because it feels
like the controls aren't in a section (and they aren't really, once you
enter the sub-section view).
- It will be necessary to add the parent section separately anyway, so
using `add_page()` versus `add_section()` gives the advantage of clearer
code without extra steps (see the changes to widgets between the two
patches for comparison). You don't have to look to see if other sections
are referencing a given section as a parent to determine if it's a super-
section or a regular one.
- We can (and should consider) group top-level-sections and pages together
for sorting by priority in the page approach; and could look into a
`WP_Customize_Group` class that `WP_Customize_Section` and
`WP_Customize_Page` both extend (@westonruter's idea).
I should note that the UI is the same in both patches, with the exception
of the sorting of pages/parent-sections.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27406#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list