-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Image: Avoid stale URL when reselecting the same image from the library #69985
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
Conversation
Size Change: -2 B (0%) Total Size: 1.85 MB
ℹ️ View Unchanged
|
Flaky tests detected in bd06953. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/14662018556
|
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @T4ngml. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. |
Love this! <3 |
I am checking the PRs with the "Backport to WP Minor Release" label applied to clarify which PRs should be backported to the WordPress 6.8.2 release. The issue this PR fixes is not new for 6.8, but it is a very useful improvement, and I think it would be a good idea to include it in the 6.8.1 release. |
…ry (#69985) Unlinked contributors: T4ngml. Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
…ry (WordPress#69985) Unlinked contributors: T4ngml. Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
…ry (#69985) Unlinked contributors: T4ngml. Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
This PR was cherry-picked into the |
What?
Closes #69965.
PR removes the condition for preserving the
url
attribute when selecting the same image from Media Library, which can cause subtle bugs as described in the linked issue.The condition was initially introduced in #16125 to avoid resetting the image "Resolution" setting, but it's no longer necessary after #49982.
Testing Instructions
src
so that both blocks point to the same image.ID
andsrc
don't match and click "Replace".src
URL.Testing Instructions for Keyboard
Same.