This PR fixes the issue where the Subject renders HTML such as <img> tag and other HTML tags that are allowed in wp_kses_post()
Testing procedure
Send an email thru your WordPress (using wp_mail()) with the subject containing <img> tag.
Navigate to your Dashboard -> WP Mail Logging -> Email Logs. You should see the string literal of the <img tag instead of the browser actually rendering the image.
Description
This PR fixes the issue where the Subject renders HTML such as
<img>
tag and other HTML tags that are allowed inwp_kses_post()
Testing procedure
wp_mail()
) with the subject containing<img>
tag.<img
tag instead of the browser actually rendering the image.Screenshots