diff --git a/blocks/library/embed/index.js b/blocks/library/embed/index.js index e494ef645ac3f..bf03d1ed8f50e 100644 --- a/blocks/library/embed/index.js +++ b/blocks/library/embed/index.js @@ -219,6 +219,10 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k save( { attributes } ) { const { url, caption, align } = attributes; + if ( ! url ) { + return; + } + return (
{ `\n${ url }\n` /* URL needs to be on its own line. */ }