Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

[Block] Classic - Images with captions show [caption] html above and below image in editor #80638

Open cuemarie opened 1 year ago

cuemarie commented 1 year ago

Quick summary

Images added via the Classic Block are showing caption html above and below the image when the image contains a visible caption.

Markup on 2023-08-15 at 11:27:22

Steps to reproduce

  1. Create a new site
  2. Open a post
  3. Insert the Classic Block
  4. Add media in the pop up modal for the classic block
  5. Select/create an image that contains a caption
  6. πŸ‘€ Observe how in the pop-up modal, the caption appears as expected
  7. πŸ‘€ Save the edit to the classic content; now observe the [caption] html above and below the image

What you expected to happen

The caption to appear as it does in the pop-up modal

What actually happened

Above image: Markup on 2023-08-15 at 11:25:53

Below image: Markup on 2023-08-15 at 11:26:01

Impact

Some (< 50%)

Available workarounds?

There is no user impact - the live site does not show the [caption] html, so users don't need to implement a workaround to hide this on their sites.

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

Replicated on Simple and Atomic. Not able to reproduce outside of Dotcom.

Simple Test Site

Atomic Test Sites

cuemarie commented 1 year ago

Found while testing https://github.com/Automattic/wp-calypso/issues/80347

cuemarie commented 1 year ago

πŸ“Œ SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

πŸ“Œ FINDINGS/SCREENSHOTS/VIDEO

Screenshots/Recordings

Atomic

https://github.com/Automattic/wp-calypso/assets/27249804/5bbfcdd3-8c38-47a9-b6ba-8082277203dc

Self-Hosted

Markup on 2023-08-15 at 11:42:28

πŸ“Œ ACTIONS

mrfoxtalbot commented 1 month ago

I re-tested this and it is still reproducible.