diff --git a/packages/block-library/src/post-featured-image/edit.js b/packages/block-library/src/post-featured-image/edit.js index 6d38eb17f79b1..ed84d7b95a180 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -92,9 +92,36 @@ function PostFeaturedImageDisplay( { createErrorNotice( message[ 2 ], { type: 'snackbar' } ); }; + const controls = ( + <> + + + + setAttributes( { isLink: ! isLink } ) } + checked={ isLink } + /> + + + + ); let image; if ( ! featuredImage && isDescendentOfQueryLoop ) { - return
{ placeholderChip }
; + return ( + <> + { controls } +
{ placeholderChip }
+ + ); } const label = __( 'Add a featured image' ); @@ -138,24 +165,7 @@ function PostFeaturedImageDisplay( { return ( <> - - - - setAttributes( { isLink: ! isLink } ) } - checked={ isLink } - /> - - + { controls } { !! media && ! isDescendentOfQueryLoop && (