diff --git a/packages/edit-post/src/components/header/template-title/delete-template.js b/packages/edit-post/src/components/header/template-title/delete-template.js index 84593feec9c4d3..9e0ac957b3dbd8 100644 --- a/packages/edit-post/src/components/header/template-title/delete-template.js +++ b/packages/edit-post/src/components/header/template-title/delete-template.js @@ -84,12 +84,12 @@ export default function DeleteTemplate() { } } info={ isRevertable - ? __( 'Use the template as supplied by the theme' ) + ? __( 'Use the template as supplied by the theme.' ) : undefined } > { isRevertable - ? __( 'Delete custom template' ) + ? __( 'Clear customizations' ) : __( 'Delete template' ) } { revertAndSaveTemplate(); onClose(); } } > - { __( 'Delete custom template' ) } + { __( 'Clear customizations' ) } ) } diff --git a/packages/edit-site/src/components/sidebar/template-card/template-actions.js b/packages/edit-site/src/components/sidebar/template-card/template-actions.js index d9461975667f69..b68cf1ff617579 100644 --- a/packages/edit-site/src/components/sidebar/template-card/template-actions.js +++ b/packages/edit-site/src/components/sidebar/template-card/template-actions.js @@ -29,14 +29,14 @@ export default function Actions( { template } ) { { revertTemplate( template ); onClose(); } } > - { __( 'Delete custom template' ) } + { __( 'Clear customizations' ) } ) } diff --git a/packages/edit-site/src/components/template-details/index.js b/packages/edit-site/src/components/template-details/index.js index e2561a0300bdce..7c7704a4580481 100644 --- a/packages/edit-site/src/components/template-details/index.js +++ b/packages/edit-site/src/components/template-details/index.js @@ -80,11 +80,11 @@ export default function TemplateDetails( { template, onClose } ) { - { __( 'Delete custom template' ) } + { __( 'Clear customizations' ) } ) } diff --git a/packages/edit-site/src/components/template-details/template-areas.js b/packages/edit-site/src/components/template-details/template-areas.js index 9edd7d2e067c2b..dfd8e33ad577d3 100644 --- a/packages/edit-site/src/components/template-details/template-areas.js +++ b/packages/edit-site/src/components/template-details/template-areas.js @@ -60,11 +60,11 @@ function TemplatePartItemMore( { - { __( 'Delete custom template part' ) } + { __( 'Clear customizations' ) } ) } diff --git a/test/e2e/specs/site-editor/template-revert.spec.js b/test/e2e/specs/site-editor/template-revert.spec.js index e141eec458536b..6a6ba6353a5e71 100644 --- a/test/e2e/specs/site-editor/template-revert.spec.js +++ b/test/e2e/specs/site-editor/template-revert.spec.js @@ -42,7 +42,7 @@ test.describe( 'Template Revert', () => { // The revert button isn't visible anymore. await expect( - page.locator( 'role=menuitem[name=/Delete custom template/i]' ) + page.locator( 'role=menuitem[name=/Clear customizations/i]' ) ).not.toBeVisible(); } ); @@ -279,9 +279,7 @@ class TemplateRevertUtils { async revertTemplate() { await this.page.click( 'role=button[name="Show template details"i]' ); - await this.page.click( - 'role=menuitem[name=/Delete custom template/i]' - ); + await this.page.click( 'role=menuitem[name=/Clear customizations/i]' ); await this.page.waitForSelector( 'role=button[name="Dismiss this notice"i] >> text="Template reverted."' );