-
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
Image: Don't create an external image 'blob' when a user can't upload files #49300
Conversation
Size Change: +14 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
Flaky tests detected in 03beb71. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4499547562
|
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.
Looks good, thanks!
What?
Part of #46326.
PR update external image fetching side-effect to check if a user can upload media.
Why?
upload_files
capability.externalBlob
has no value.Testing Instructions
I'm using an image from Openverse since they rarely trigger CORS errors. Sample - https://openverse.org/image/dbc5280c-a61b-43c2-9f3d-c29302897434.
The feature will work for users with the right capabilities as before.
Screenshots or screencast