Opened 9 years ago
Closed 9 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: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
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.
I can confirm that 38890.0.diff resolves the issue I was having. Thank you!