' . $image . '
'render_block_core_cover',
+ )
+ );
+}
+add_action( 'init', 'register_block_core_cover' );
diff --git a/packages/block-library/src/cover/save.js b/packages/block-library/src/cover/save.js
index c392d0821ebb20..ee6e6e2def8b4c 100644
--- a/packages/block-library/src/cover/save.js
+++ b/packages/block-library/src/cover/save.js
@@ -34,6 +34,7 @@ export default function save( { attributes } ) {
customOverlayColor,
dimRatio,
focalPoint,
+ useFeaturedImage,
hasParallax,
isDark,
isRepeated,
@@ -60,7 +61,7 @@ export default function save( { attributes } ) {
const isImgElement = ! ( hasParallax || isRepeated );
const style = {
- ...( isImageBackground && ! isImgElement
+ ...( isImageBackground && ! isImgElement && ! useFeaturedImage
? backgroundImageStyles( url )
: {} ),
minHeight: minHeight || undefined,
@@ -113,19 +114,22 @@ export default function save( { attributes } ) {
style={ bgStyle }
/>
- { isImageBackground && isImgElement && url && (
-
- ) }
+ { ! useFeaturedImage &&
+ isImageBackground &&
+ isImgElement &&
+ url && (
+
+ ) }
{ isVideoBackground && url && (