Skip to content

Commit

Permalink
Update invalid block copy
Browse files Browse the repository at this point in the history
Try and make it clearer while not wrapping any buttons in invalid messages
  • Loading branch information
johngodley committed Sep 6, 2018
1 parent 8517779 commit fbb0962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion edit-post/hooks/validate-multiple-use/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const withMultipleValidation = createHigherOrderComponent( ( BlockEdit ) => {
] }
>
<strong>{ blockType.title }: </strong>
{ __( 'This block may not be used more than once.' ) }
{ __( 'This block can only be used once.' ) }
</Warning>,
];
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,19 @@ function BlockInvalidWarning( { convertToHTML, convertToBlocks, convertToClassic
<Warning
actions={ [
<Button key="convert" onClick={ convertToBlocks } isLarge isPrimary={ ! hasHTMLBlock }>
{ __( 'Convert to Blocks' ) }
{ __( 'Auto-convert' ) }
</Button>,
hasHTMLBlock && (
<Button key="edit" onClick={ convertToHTML } isLarge isPrimary>
{ __( 'Keep as HTML' ) }
{ __( 'Keep' ) }
</Button>
),
] }
secondaryActions={ [
{ title: __( 'Convert to Blocks' ), onClick: convertToBlocks },
{ title: __( 'Convert to Classic Block' ), onClick: convertToClassic },
] }
>
{ __( 'This block has been modified externally.' ) }
{ __( 'This block contains unexpected content.' ) }
</Warning>
);
}
Expand Down

0 comments on commit fbb0962

Please sign in to comment.