Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Feb 4, 2019
1 parent 3a1ddab commit f2df1e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 1 addition & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/block-library/src/embed/embed-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const EmbedPreview = ( props ) => {
{ ( cannotPreview ) ? (
<Placeholder icon={ <BlockIcon icon={ icon } showColors /> } label={ label }>
<p className="components-placeholder__error"><a href={ url }>{ url }</a></p>
<p className="components-placeholder__error">{ __( 'Sorry, we cannot preview this embedded content in the editor.' ) }</p>
<p className="components-placeholder__error">{ __( 'Sorry, this embedded content cannot be previewed in the editor.' ) }</p>
</Placeholder>
) : embedWrapper }
{ ( ! RichText.isEmpty( caption ) || isSelected ) && (
Expand Down
5 changes: 5 additions & 0 deletions packages/editor/src/components/block-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ export default compose( [
const { getBlock } = select( 'core/editor' );
const { getBlockStyles } = select( 'core/blocks' );
const block = getBlock( clientId );

if ( ! block ) {
return null;
}

const blockType = getBlockType( block.name );

return {
Expand Down

0 comments on commit f2df1e6

Please sign in to comment.