Skip to content

Commit

Permalink
Update Label
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Nov 15, 2024
1 parent 4b0bd79 commit c42b7ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/editor/src/components/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,14 @@ const getSiteEditorCategoryCommands = () =>
const taxonomy = templateSlug.includes( 'tag' )
? 'post_tag'
: 'category';
const label =
taxonomy === 'post_tag'
? __( 'Manage Tags' )
: __( 'Manage Categories' );

commands.push( {
name: 'core/manage-categories',
label: __( 'Manage Categories' ),
label,
icon: category,
callback: ( { close } ) => {
close();
Expand Down

0 comments on commit c42b7ef

Please sign in to comment.