Skip to content

Commit

Permalink
Feedback Changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Feb 27, 2025
1 parent 5a15f6d commit 17bd708
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/components/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ const getSiteEditorCategoryCommands = () =>
const commands = [];

// Check if we are in the Site Editor and editing a category-related template
const isSiteEditor = window.location.href.includes( 'site-editor.php' );
const isSiteEditor = getPath( window.location.href )?.includes(
'site-editor.php'
);
if ( isSiteEditor && templateSlug ) {
const isCategoryTemplate =
templateSlug.includes( 'category' ) ||
Expand Down

0 comments on commit 17bd708

Please sign in to comment.