Skip to content

Commit 1490580

Browse files
jorgefilipecostajameskostersimisonhanneslsm
authored
Update: Label of "Move to trash" action to "Trash". (WordPress#72596)
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: simison <simison@git.wordpress.org> Co-authored-by: hanneslsm <hanneslsm@git.wordpress.org>
1 parent 542b88f commit 1490580

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/dataviews/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ The user facing description of the action.
818818

819819
```js
820820
{
821-
label: Move to Trash
821+
label: Trash
822822
}
823823
```
824824

packages/fields/src/actions/trash-post.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import type { CoreDataError, PostWithPermissions } from '../types';
2323

2424
const trashPost: Action< PostWithPermissions > = {
2525
id: 'move-to-trash',
26-
label: __( 'Move to trash' ),
26+
label: __( 'Trash' ),
2727
isPrimary: true,
2828
icon: trash,
2929
isEligible( item ) {

test/e2e/specs/editor/various/change-detection.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ test.describe( 'Change detection', () => {
414414
.click();
415415
await page
416416
.getByRole( 'menu' )
417-
.getByRole( 'menuitem', { name: 'Move to trash' } )
417+
.getByRole( 'menuitem', { name: 'Trash' } )
418418
.click();
419419
await page
420420
.getByRole( 'dialog' )

test/e2e/specs/site-editor/template-registration.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test.describe( 'Block template registration', () => {
9494
);
9595
const searchResults = page.getByLabel( 'Actions' );
9696
await searchResults.first().click();
97-
await page.getByRole( 'menuitem', { name: 'Move to trash' } ).click();
97+
await page.getByRole( 'menuitem', { name: 'Trash' } ).click();
9898
await page.getByRole( 'button', { name: 'Trash' } ).click();
9999

100100
await expect( resetNotice ).toBeVisible();
@@ -228,7 +228,7 @@ test.describe( 'Block template registration', () => {
228228
);
229229
const searchResults = page.getByLabel( 'Actions' );
230230
await searchResults.first().click();
231-
await page.getByRole( 'menuitem', { name: 'Move to trash' } ).click();
231+
await page.getByRole( 'menuitem', { name: 'Trash' } ).click();
232232
await page.getByRole( 'button', { name: 'Trash' } ).click();
233233

234234
await expect( deletedNotice ).toBeVisible();
@@ -350,7 +350,7 @@ test.describe( 'Block template registration', () => {
350350
.click();
351351
const actions = page.getByLabel( 'Actions' );
352352
await actions.first().click();
353-
await page.getByRole( 'menuitem', { name: 'Move to trash' } ).click();
353+
await page.getByRole( 'menuitem', { name: 'Trash' } ).click();
354354
await page.getByRole( 'button', { name: 'Trash' } ).click();
355355

356356
await expect( resetNotice ).toBeVisible();

0 commit comments

Comments
 (0)