From b64631c920796a2b2c97c1556e7c686817e8d7ff Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 18 Apr 2023 13:11:38 +0100 Subject: [PATCH] Allow adding posts and pages with custom titles from the search command --- packages/edit-site/src/hooks/commands/use-wp-admin-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/hooks/commands/use-wp-admin-commands.js b/packages/edit-site/src/hooks/commands/use-wp-admin-commands.js index 881ce31fc41424..81337b85684eac 100644 --- a/packages/edit-site/src/hooks/commands/use-wp-admin-commands.js +++ b/packages/edit-site/src/hooks/commands/use-wp-admin-commands.js @@ -44,7 +44,7 @@ const getWPAdminAddCommandLoader = ( postType ) => const commands = useMemo( () => [ { - name: 'core/wp-admin/add-' + postType, + name: 'core/wp-admin/add-' + postType + '-' + search, label, icon: plus, callback: () => {