From 91cc1c3a742f112c5678be8cdaafd29d0a8aad7d Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 19 Apr 2023 10:03:33 +0100 Subject: [PATCH] Allow adding posts and pages with custom titles from the search command (#49893) --- 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: () => {