-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cover: Fix media library image selection #66782
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: +39 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
Flaky tests detected in 9b09c91. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11697467717
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix @Mamaduka 🚀
✅ Typo fix works as advertised
✅ Rest API upload fix works
LGTM 🚢
Thanks for testing and review, @aaronrobertshaw 🙇 I'm going to merge this. The long-running RN Andoind test is a known issue (#66771). |
* Cover: Fix media library image selection * Fix sizes for uploaded images Co-authored-by: Mamaduka <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: richtabor <[email protected]>
What?
Fixes #66765.
A regression after #62926.
PR fixes a regression when selecting an image from the Media Library didn't set the
url
attribute for the cover block. I've also fixed the logic for derivingsizeSlug
andurl
attributes during direct uploads.Re 9b09c91 - The media object returned by Library selection and REST API upload have different shapes.
The fixes are in atomic commits, which should make reviewing easier.
Testing Instructions
imageDefaultSize
(default:large
) size.large
).Testing Instructions for Keyboard
Same.