Repository navigation
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +152 B (+0.01%) Total Size: 3 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 0ebbb54. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/21841809467
|
|
Closing in favor of #75399 |
What?
Adds featured image support to LinkControl's link preview popover.
Why?
Featured images were already displayed in LinkPicker's preview (navigation link sidebar controls), but were missing from LinkControl's link preview popover. This creates an inconsistent experience when working with entity links.
When users select an internal link to a page or post that has a featured image, showing that image in the preview helps them:
How?
useFeaturedImagehook in@wordpress/block-editor/src/components/hooks/use-featured-image.jsprivateApis)LinkPreviewcomponent to fetch entity records and featured images for entity linksuseLinkPreviewhook now uses the shareduseFeaturedImagehookselect('core')to avoid circular dependency between@wordpress/block-editorand@wordpress/core-dataTesting Instructions
Screenshots or screencast