From a096a39074627cbf8a46b9b5abf0a7161917ebed Mon Sep 17 00:00:00 2001 From: Lucio Giannotta Date: Wed, 17 Nov 2021 16:44:13 +0100 Subject: [PATCH] Legacy Template Block: Remove the deletion lock (#5166) Previously, our legacy template block was locked to prevent the users from removing it. The block could however be removed by erasing the parent, so this change allows the user to directly remove the block itself. Also: Closes #5163 Closes #5109 --- assets/js/blocks/legacy-template/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/assets/js/blocks/legacy-template/index.tsx b/assets/js/blocks/legacy-template/index.tsx index 4a43612e02e..778800e274d 100644 --- a/assets/js/blocks/legacy-template/index.tsx +++ b/assets/js/blocks/legacy-template/index.tsx @@ -84,12 +84,6 @@ registerBlockType( 'woocommerce/legacy-template', { type: 'string', default: 'any', }, - lock: { - type: 'object', - default: { - remove: true, - }, - }, }, edit: Edit, save: () => null,