[wp-trac] [WordPress Trac] #32683: Custom Menu widget should include a shortcut to load selected menu inside the customiser
WordPress Trac
noreply at wordpress.org
Tue Apr 19 00:27:57 UTC 2016
#32683: Custom Menu widget should include a shortcut to load selected menu inside
the customiser
-----------------------------+-------------------------
Reporter: paulwilde | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 4.6
Component: Customize | Version: 4.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-----------------------------+-------------------------
Changes (by celloexpressions):
* keywords: needs-patch => has-patch
* milestone: Future Release => 4.6
Comment:
[attachment:32683.diff] is a first-pass at adding an "edit menu" button to
the nav menu widget when used in the customizer, which links directly to
the associated nav menu section. This is great for user flow, and the
button updates when the selected menu is changed.
In the patch, the JS is included fairly hickily, but without a JS API for
widgets, I think this approach could work. It's scoped specifically to the
ids of each widget so it should be fine. If anyone has an idea for a
better approach, would love to see it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32683#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list