Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#39091 new defect (bug)

Customize: Nav menu item controls should be inactive when items are excluded from preview

Reported by: westonruter's profile westonruter Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.3
Component: Customize Keywords: needs-patch
Focuses: Cc:


Plugins can exclude nav menu items from displaying in nav menus in a plugin like Nav Menu Roles. This is similar to how widgets can be conditionally excluded from sidebars via a plugin like Jetpack's Widget Visibility module. This is currently implemented for widgets, where a widget that is not shown in the preview will have its control's active state set to false (causing it to become partially-opaque rather than fully hidden). Something similar should be done for nav menu item controls that are excluded from the preview.

Attachments (1)

39091.wip.diff (1.6 KB) - added by westonruter 7 years ago.

Download all attachments as: .zip

Change History (3)

#1 @westonruter
7 years ago

39091.wip.diff almost gets us there, except it is then not possible to expand the nav menu item when it is inactive.

#2 @celloexpressions
7 years ago

This would be a good usability improvement.

Note: See TracTickets for help on using tickets.