Opened 8 years ago
Closed 8 years ago
#39353 closed defect (bug) (fixed)
Customize: menu widgets lose edit shortcuts when added/refreshed
Reported by: | sirbrillig | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.7.3 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Customize | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
When a Custom Menu widget is first added to a page or when it is refreshed (eg: by changing its title), the menu does does not have an edit shortcut added. The widget does get an edit shortcut (see #39352 for info about the two shortcuts) but the one for the menu is not present until the customizer is reloaded.
Steps to reproduce:
- Make sure your site has at least one nav menu created.
- Add a new Custom Menu widget in a theme that supports partials (eg: Twenty Seventeen).
- Set that widget to display an existing nav menu.
- Click on the edit shortcut for the widget.
Expected behavior: the nav menu control will be shown.
Actual behavior: the widget control is shown.
Originally reported by @westonruter in #39101.
Attachments (2)
Change History (14)
#1
@
8 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
#5
@
8 years ago
Either this was fixed in 4.7.2 or I don't understand the problem.
https://core.trac.wordpress.org/ticket/39101
When I add a custom menu widget to the sidebar in twentyseventeen, I get two edit icons. The top edit icon brings up the widget settings, the one beneath it brings up the menu settings.
#6
@
8 years ago
@tristangemus see menu-widget-nested-nav-menu-edit-shortcut-dropped.mov. You can see that at the moment the widget's title changes, the second edit shortcut for the nested partial gets unexpectedly dropped.
#7
@
8 years ago
- Keywords has-patch needs-testing added; needs-patch removed
@sirbrillig would you give 39353.0.diff a try? The issue is that we need to ensure that we set up the edit shortcuts for nested partial placements.
#9
@
8 years ago
- Keywords commit added; needs-testing removed
- Owner set to westonruter
- Status changed from new to accepted
This could possibly be in 4.7.2 if it gets a patch in time since it's introduced in 4.7.