Skip to content

QA Unmapped Blocks - Media & Text block is omitted when image attachment is deleted even though image URL still works #156

Description

@mohitwp

Description

When the image used in a Media & Text block is deleted from the WordPress Media Library, the image still appears in the WordPress editor/backend and on the post front end, but the Media & Text block is omitted from the beehiiv newsletter.

The image URL is still directly accessible, so the block appears to still have a valid image URL available.

Example image URL:

https://beehiivqa.instawp.site/wp-content/uploads/2026/06/image-1024x469.png

Post URL :

https://beehiivqa.instawp.site/qa-media-and-text-2/

Steps to Reproduce

  1. Create/edit a WordPress post.
  2. Add a Media & Text block.
  3. Select/upload an image in the media column.
  4. Add text content in the text column.
  5. Save the post.
  6. Delete the selected image from the WordPress Media Library.
  7. Confirm that the image still appears in the WordPress editor/backend and on the post front end.
  8. Enable/send the newsletter to beehiiv.
  9. Check the beehiiv newsletter/front end.

Expected Result

If the saved image URL is still valid and the image renders in WordPress, the Media & Text block should be included in the beehiiv newsletter.

If the block cannot be mapped because the attachment no longer exists, the plugin should show a warning before sending that the block/content will be omitted.

Actual Result

The image still appears in the WordPress editor/backend and on the post front end, but the Media & Text block is omitted from the beehiiv newsletter.

No warning is shown before sending.

Notes

The mapping doc says attrs.mediaId is not needed for MVP, while attrs.mediaUrl maps to the beehiiv image URL.

This suggests the Media & Text mapping should rely on the saved mediaUrl rather than requiring the WordPress attachment/media ID to still exist, or at least warn the user if the block will be omitted.

Reference from mapping doc:

  • attrs.mediaId → not needed
  • attrs.mediaUrlcolumns[image_column].blocks[].imageUrl

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions