From 718c8556d2d053133fc23306b91468b90c6c5a78 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 28 Oct 2021 15:09:41 +0800 Subject: [PATCH] Force delete menus --- .../src/navigation/edit/navigation-menu-delete-control.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js b/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js index 1b52f1c2bada1..b9594c7d620d0 100644 --- a/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js +++ b/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js @@ -64,7 +64,8 @@ export default function NavigationMenuDeleteControl( { onDelete } ) { deleteEntityRecord( 'postType', 'wp_navigation', - id + id, + { force: true } ); onDelete(); } }