Skip to content

Commit

Permalink
Make label description source agnostic (#37004)
Browse files Browse the repository at this point in the history
Update the "Clear customizations" link label so that it reads better when the template was supplied by a plugin.
  • Loading branch information
jameskoster authored Dec 2, 2021
1 parent 8eb1f34 commit e523441
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/list/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function Actions( { template } ) {
) }
{ isRevertable && (
<MenuItem
info={ __( 'Restore template to theme default' ) }
info={ __( 'Restore template to default state' ) }
onClick={ () => {
revertAndSaveTemplate();
onClose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function TemplateDetails( { template, onClose } ) {
<MenuGroup className="edit-site-template-details__group edit-site-template-details__revert">
<MenuItem
className="edit-site-template-details__revert-button"
info={ __( 'Restore template to theme default' ) }
info={ __( 'Restore template to default state' ) }
onClick={ revert }
>
{ __( 'Clear customizations' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function TemplatePartItemMore( {
{ isTemplateRevertable( templatePart ) && (
<MenuGroup>
<MenuItem
info={ __( 'Restore template to theme default' ) }
info={ __( 'Restore template to default state' ) }
onClick={ clearCustomizations }
>
{ __( 'Clear customizations' ) }
Expand Down

0 comments on commit e523441

Please sign in to comment.