apple-news icon indicating copy to clipboard operation
apple-news copied to clipboard

The caption is not pushed to Apple News when using the img_caption_shortcode filter

Open eyal-rgb opened this issue 7 months ago • 0 comments

Description of the bug

On a site with the classic editor, all content is pushed except for the caption of the images.

Steps To Reproduce

Customize the HTML of the images using the img_caption_shortcode filter: https://developer.wordpress.org/reference/hooks/img_caption_shortcode/ . All content will be pushed to Apple News, and the caption will be missing.

Additional Information

An example of the image code on our site after using the img_caption_shortcode filter:

<div id="attachment_0000000" class="wp-caption alignnone">
     <img decoding="async" class="size-medium wp-image-0000000" src="...." alt="" width="400" height="250" />
     <div class="wp-caption-text">
          Lorem Ipsum is simply dummy text of the printing and typesetting industry.
     </div>
</div>

eyal-rgb avatar Jul 28 '24 08:07 eyal-rgb