-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deletion of menu items on the Navigation screen. #21282
Comments
This is a bit complicated by the fact that the menu items which the One reason for this is that in the navigation link block the concept of ID is completely different and refers to the id of the post linked to. In the context of menu items ID is the menu item's entry number in the Since
I try to use (1) since the two contexts are not likely to be interchangeable. |
Later edit Apparently Problem descriptionEventually, the problem we hit here is about the entities system not supporting `delete` operations on `Entity` data. We went ahead and tried different approaches to implement delete (with and without undo) but we have uncovered something which appears to be a bug in the Entities system, explained briefly like this:There is something that calls
Step 3 is done through some auto-magic wiring between |
#22603 closed this. |
Is your feature request related to a problem? Please describe.
#21036 implemented the experimental nav screen. Currently menu items can be added or modified, but can't be removed.
Describe the solution you'd like
In addition to
get
andsave
functions, the core data package also exposes aremove
/delete
function for entities. This is used to allow the deletion of menu items in this code:gutenberg/packages/edit-navigation/src/components/menu-editor/use-navigation-blocks.js
Line 93 in 37bda8a
The text was updated successfully, but these errors were encountered: