Opened 10 years ago
Closed 10 years ago
#38890 closed defect (bug) (fixed)
Customize: Selective refresh for nav menus can cause infinite reloads when it contains invalid menu items
| Reported by: | westonruter | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Customize | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
The way I've reproduced the problem, as suggested by @swissspidy:
- Create 5 posts.
- Create a new nav menu and assign to a location.
- Assign 5 posts to new nav menu.
- Trash the 5 posts so that all of the nav menu items become invalid.
- Load site in the customizer and notice infinite reloads.
It appears to be a problem with handleUnplacedNavMenuInstances.
Reported at:
https://wordpress.org/support/topic/customizer-preview-keeps-refreshing-infinitely-under-certain-circumstances/#post-8463765
https://wordpress.slack.com/archives/core-customize/p1479733895000901
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I can confirm that 38890.0.diff resolves the issue I was having. Thank you!