diff --git a/packages/block-library/src/cover/edit/index.js b/packages/block-library/src/cover/edit/index.js index 677c25035cf0ae..4a381daf3de16d 100644 --- a/packages/block-library/src/cover/edit/index.js +++ b/packages/block-library/src/cover/edit/index.js @@ -24,6 +24,7 @@ import { import { __ } from '@wordpress/i18n'; import { useSelect, useDispatch } from '@wordpress/data'; import { isBlobURL } from '@wordpress/blob'; +import { SVG, Path } from '@wordpress/primitives'; import { store as noticesStore } from '@wordpress/notices'; /** @@ -46,6 +47,18 @@ import ResizableCover from './resizable-cover'; extend( [ namesPlugin ] ); +const placeholderIllustration = ( + + + +); + function getInnerBlocksTemplate( attributes ) { return [ [ @@ -212,7 +225,7 @@ function CoverEdit( { overlayColor, }; - if ( ! hasInnerBlocks && ! hasBackground ) { + if ( ! useFeaturedImage && ! hasInnerBlocks && ! hasBackground ) { return ( <> -