From c57c222dd3adc3eae0d6e252c79c51b7686e22dd Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Fri, 8 Nov 2024 00:57:28 +0900 Subject: [PATCH] Core Commands: Fix add new post URL assignment (#66830) Co-authored-by: tyxla Co-authored-by: Mamaduka --- packages/core-commands/src/admin-navigation-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-commands/src/admin-navigation-commands.js b/packages/core-commands/src/admin-navigation-commands.js index 9f0883faa3c17..8a8167bb29b82 100644 --- a/packages/core-commands/src/admin-navigation-commands.js +++ b/packages/core-commands/src/admin-navigation-commands.js @@ -97,7 +97,7 @@ export function useAdminNavigationCommands() { label: __( 'Add new post' ), icon: plus, callback: () => { - document.location.href = 'post-new.php'; + document.location.assign( 'post-new.php' ); }, } );