Skip to content

Commit

Permalink
Embed placeholder breaks upon reload (WordPress#5604)
Browse files Browse the repository at this point in the history
return null to return nothing
  • Loading branch information
Luke committed Mar 15, 2018
1 parent 63553e5 commit 85d2c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/library/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k
const { url, caption, align, type, providerNameSlug } = attributes;

if ( ! url ) {
return;
return null;
}

const embedClassName = classnames( 'wp-block-embed', {
Expand Down

0 comments on commit 85d2c75

Please sign in to comment.