diff --git a/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js b/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js index 4d43865a7f83a2..657d685b966e07 100644 --- a/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js +++ b/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js @@ -41,9 +41,7 @@ const POPOVER_PROPS = { function CopyMenuItem( { blocks, onCopy, label } ) { const ref = useCopyToClipboard( () => serialize( blocks ), onCopy ); - const copyMenuItemBlocksLabel = - blocks.length > 1 ? __( 'Copy blocks' ) : __( 'Copy' ); - const copyMenuItemLabel = label ? label : copyMenuItemBlocksLabel; + const copyMenuItemLabel = label ? label : __( 'Copy' ); return { copyMenuItemLabel }; } @@ -202,9 +200,6 @@ export function BlockSettingsDropdown( { getSelectedBlockClientIds, ] ); - const removeBlockLabel = - count === 1 ? __( 'Delete' ) : __( 'Delete blocks' ); - // This can occur when the selected block (the parent) // displays child blocks within a List View. const parentBlockIsSelected = @@ -411,7 +406,7 @@ export function BlockSettingsDropdown( { ) } shortcut={ shortcuts.remove } > - { removeBlockLabel } + { __( 'Delete' ) } ) } diff --git a/test/e2e/specs/editor/various/list-view.spec.js b/test/e2e/specs/editor/various/list-view.spec.js index f05b7760c4cc7a..674801cf94abab 100644 --- a/test/e2e/specs/editor/various/list-view.spec.js +++ b/test/e2e/specs/editor/various/list-view.spec.js @@ -820,7 +820,7 @@ test.describe( 'List View', () => { .click(); await page .getByRole( 'menu', { name: 'Options for Heading' } ) - .getByRole( 'menuitem', { name: 'Delete blocks' } ) + .getByRole( 'menuitem', { name: 'Delete' } ) .click(); await expect .poll(