From 250d2daa0f91e1689a2db71d7a8549e7cb3850d8 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:39:21 +1000 Subject: [PATCH] Patterns: Suggest commands when editing pattern in site editor --- .../edit-site/src/hooks/commands/use-edit-mode-commands.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 432160a957372..37baef18dffd4 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 @@ -4,6 +4,7 @@ import { useSelect, useDispatch } from '@wordpress/data'; import { __, sprintf, isRTL } from '@wordpress/i18n'; import { + edit, trash, rotateLeft, rotateRight, @@ -375,7 +376,7 @@ function usePatternCommands() { commands.push( { name: 'core/rename-pattern', label: __( 'Rename pattern' ), - icon: symbol, + icon: edit, callback: ( { close } ) => { openModal( PATTERN_MODALS.rename ); close(); @@ -416,6 +417,7 @@ export function useEditModeCommands() { useCommandLoader( { name: 'core/edit-site/patterns', hook: usePatternCommands, + context: 'site-editor-edit', } ); useCommandLoader( {