Skip to content

Commit

Permalink
Media & Text: Correctly reset the 'useFeaturedImage' attribute (WordP…
Browse files Browse the repository at this point in the history
…ress#68247)


Co-authored-by: SH4LIN <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Dec 24, 2024
1 parent af0e277 commit 58a72af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function attributesFromMedia( {
mediaLink: undefined,
href: undefined,
focalPoint: undefined,
useFeaturedImage: false,
} );
return;
}
Expand Down Expand Up @@ -128,6 +129,7 @@ function attributesFromMedia( {
mediaLink: media.link || undefined,
href: newHref,
focalPoint: undefined,
useFeaturedImage: false,
} );
};
}
Expand Down

0 comments on commit 58a72af

Please sign in to comment.