Skip to content

Conditionally render the featured image in the email, only if it is set.#918

Merged
mauteri merged 1 commit intoGatherPress:mainfrom
carstingaxion:fix/fragment-of-752-conditional-featured-image
Sep 26, 2024
Merged

Conditionally render the featured image in the email, only if it is set.#918
mauteri merged 1 commit intoGatherPress:mainfrom
carstingaxion:fix/fragment-of-752-conditional-featured-image

Conversation

@carstingaxion
Copy link
Copy Markdown
Collaborator

@carstingaxion carstingaxion commented Sep 26, 2024

Fragmentation of #752

Description of the Change

Until this PR GatherPress sends email including an img-tag, even if the event has no featured-image set.

Closes #

How to test the Change

Send yourself an event-email, that has no image set and prove that thze received email doesn't contain an empty img-tag.

Changelog Entry

Fixed - Conditionally render the featured image in the email, only if it is set.

Credits

Props @carstingaxion

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@github-actions
Copy link
Copy Markdown
Contributor

Preview changes with Playground

You can preview the recent changes for PR#918 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@mauteri mauteri merged commit c41587a into GatherPress:main Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants