From c09f5d25bd161489e1091ceb9b72d6a169fb0b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:17:25 +0200 Subject: [PATCH] On removing the template part from the command bar, go back to patterns --- .../edit-site/src/hooks/commands/use-edit-mode-commands.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/edit-site/src/hooks/commands/use-edit-mode-commands.js b/packages/edit-site/src/hooks/commands/use-edit-mode-commands.js index a6ab867d043ecb..0550a0d5978915 100644 --- a/packages/edit-site/src/hooks/commands/use-edit-mode-commands.js +++ b/packages/edit-site/src/hooks/commands/use-edit-mode-commands.js @@ -154,9 +154,7 @@ function useManipulateDocumentCommands() { decodeEntities( template.title ) ); const path = - template.type === TEMPLATE_POST_TYPE - ? '/wp_template' - : '/wp_template_part/all'; + template.type === TEMPLATE_POST_TYPE ? '/wp_template' : '/patterns'; commands.push( { name: 'core/remove-template', label,