You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify there is a a navigation item there, and its content is a Page List block, showing the list site's pages.
In the navigation's context menu, select Rename
Rename the navigation
Result: the navigation is not only renamed, but its content is also reset to empty string ('').
Here is a video:
Screen.Recording.2024-03-19.at.13.33.56.mov
Note that the "Sample Page" item (it's part of the Page List block) has disappeared after the rename.
The REST request to rename looks like this:
and this is the response:
Note that not only the title field has changed, but also the content has been reset.
@tellthemachines Maybe there is something wrong with the WP_Navigation_Fallback class in Core? If I understand it correctly, wp_navigation is just another custom post type, and its REST requests are handled by the vanilla posts controller. Editing individual fields should work without resetting the others. It's only WP_Navigation_Fallback that patches the schema somehow, including the content.* fields.
Steps to reproduce:
Result: the navigation is not only renamed, but its content is also reset to empty string (
'').Here is a video:
Screen.Recording.2024-03-19.at.13.33.56.mov
Note that the "Sample Page" item (it's part of the Page List block) has disappeared after the rename.
The REST request to rename looks like this:
and this is the response:
Note that not only the
titlefield has changed, but also thecontenthas been reset.@tellthemachines Maybe there is something wrong with the
WP_Navigation_Fallbackclass in Core? If I understand it correctly,wp_navigationis just another custom post type, and its REST requests are handled by the vanillapostscontroller. Editing individual fields should work without resetting the others. It's onlyWP_Navigation_Fallbackthat patches the schema somehow, including thecontent.*fields.