Skip to content

Commit

Permalink
Media & Text: Correctly reset the 'useFeaturedImage' attribute (#68247)
Browse files Browse the repository at this point in the history
Co-authored-by: SH4LIN <sh4lin@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • 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

1 comment on commit 58a72af

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 58a72af.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12480789315
📝 Reported issues:

Please sign in to comment.