Skip to content

Commit

Permalink
Merge pull request #1 from efu98/Fallback-first-image-on-featured-image
Browse files Browse the repository at this point in the history
  • Loading branch information
efu98 authored Sep 6, 2024
2 parents 825cdac + 2c03bba commit 96bfcc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/block-library/src/post-featured-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,14 @@ export default function PostFeaturedImageEdit( {
/>
</>
) }
<ToggleControl
__nextHasNoMarginBottom
label={ __( 'Fallback to first image from post' ) }
onChange={ ( value ) =>
setAttributes( { useFirstImageFromPost: value } )
}
checked={ useFirstImageFromPost }
/>
</PanelBody>
</InspectorControls>
</>
Expand Down

0 comments on commit 96bfcc5

Please sign in to comment.