Skip to content
Prev Previous commit
Next Next commit
Use existing command id (the one we're replacing)
  • Loading branch information
ramonjd committed Sep 19, 2024
commit 6cd5c527beef95c716ca4d723399fdc558ba20e7
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function useAddNewPageCommand() {
const commands = useMemo( () => {
return [
{
name: 'core/edit-site/add-new-page',
name: 'core/add-new-page',
label: __( 'Add new page' ),
icon: plus,
callback: createPageEntity,
Expand All @@ -228,7 +228,7 @@ export function useEditModeCommands() {
unregisterCommand( 'core/add-new-page' );

useCommandLoader( {
name: 'core/edit-site/add-new-page',
name: 'core/add-new-page',
hook: useAddNewPageCommand,
} );

Expand Down