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 and karthick-murugan committed Nov 13, 2024
1 parent 2e1d891 commit c57c222
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 c57c222

Please sign in to comment.