Skip to content

Commit

Permalink
Core Commands: Fix add new post URL assignment (WordPress#66830)
Browse files Browse the repository at this point in the history
Co-authored-by: tyxla <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent cb24e93 commit 9671f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-commands/src/admin-navigation-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
},
} );

Expand Down

0 comments on commit 9671f7c

Please sign in to comment.