-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Editor: When editing, pass the edited image src. #23703
Conversation
Corresponding trac ticket: https://core.trac.wordpress.org/ticket/50565. |
Size Change: +2 B (0%) Total Size: 1.14 MB
ℹ️ View Unchanged
|
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.
I think we can safely merge this now. The REST API doesn't error on unrecognized parameters, so if someone is running on Trunk + GB Trunk the parameter will be passed and just won't be operated on.
We'll need to wait to merge the patch in Core until the same time as the updated GB JS lands.
Needs to be added to trunk (ideally before 5.5-beta2) to unblock https://core.trac.wordpress.org/ticket/50565. Only the tiny js change matters for there :) |
Image edit: Fix cases where the edited Image src doesn't match the attachment ID. Includes backwards compatibility for WordPress 5.4 or lower.
Fixes #23702.
Description
Adds the image
src
to the Save request when editing an image. On the API side the image meta (retrieved by using the attachment ID) is verified against the src.Checklist: