From c42b7ef155c0da17524f79818045cd5a6fc0367c Mon Sep 17 00:00:00 2001 From: karthick-murugan Date: Fri, 15 Nov 2024 17:24:59 +0530 Subject: [PATCH] Update Label --- packages/editor/src/components/commands/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/commands/index.js b/packages/editor/src/components/commands/index.js index 28413fb1dbeb5e..5b3007d8bc137f 100644 --- a/packages/editor/src/components/commands/index.js +++ b/packages/editor/src/components/commands/index.js @@ -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();