From 2c03bba17e58b7706a5956bd75cdb5b1eaba94db Mon Sep 17 00:00:00 2001 From: el98 Date: Thu, 5 Sep 2024 23:56:07 +0200 Subject: [PATCH] Add toggle on featured image to fallback to first image --- packages/block-library/src/post-featured-image/edit.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/block-library/src/post-featured-image/edit.js b/packages/block-library/src/post-featured-image/edit.js index ff777f707330d..c49558a114b24 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -239,6 +239,14 @@ export default function PostFeaturedImageEdit( { /> ) } + + setAttributes( { useFirstImageFromPost: value } ) + } + checked={ useFirstImageFromPost } + />