Navigation Block: Submenu's Parent Page is not marked as Invalid when page is deleted #44760
Labels
[Block] Navigation
Affects the Navigation Block
[Type] Bug
An existing feature does not function as intended
Description
When a Navigation Block Submenu uses a Page for it's Parent menu item, and that page is deleted, the editor does not show
(Invalid)
next to the menu item, like it does for other menu items.This happens with the Navigation Block in both Classic and FSE themes.
Step-by-step reproduction instructions
Live site removes the submenu altogether, but the editor shows the same menu as before - without adding
(Invalid)
to the deleted page.Screenshots, screen recording, code snippet
Screen.Capture.on.2022-10-06.at.17-34-34.mp4
By comparison, another page within a navigation block that is deleted shows
(Invalid)
added to the menu label:Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: