-
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 Block: Replacing Image can alter caption settings #66979
Comments
@MadtownLems I am able to replicate the behavior and suspect it may be intentional; however, it could easily be perceived as a bug from a user’s perspective. |
While the current behavior is intended, I agree that this is a bit confusing. Even in the Classic Editor, when you replace an image, the caption for the new image appears. |
What's the process for debating making a change here? I think that
replacing an image and having the caption show up should never happen - but
I REALLY don't think it should happen in the context of a pattern (which I
believe is now possible to detect).
|
There has been some discussion about this issue in a few places. Let's close this issue and continue the discussion in #42834. |
Description
When you have an Image Block (with Caption toggled off), and replace it with an Image from your Media Library that does have a caption, the Image Block gets its Caption setting toggled on (and uses the caption of the new Image block). This doesn't feel like expected behavior at all in typical contexts, and is very annoying when dealing with Block Patterns. Many of our Block Patterns make use of Image Blocks (withOUT captions). When users customize the Pattern with their own Image, a Caption suddenly pops up where nobody intended one to be (and is very easy to miss).
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.7, no Gutenberg plugin
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: