WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#31720 closed defect (bug) (fixed)

Emoji email filter doesn't check the content type

Reported by: pento Owned by: pento
Milestone: 4.2 Priority: normal
Severity: normal Version: 4.2
Component: Emoji Keywords: emoji
Focuses: Cc:
PR Number:

Description

The emoji email filter needs to check the content type of the email, and only transform emoji into images if it's text/html.

We need to check both $mail['headers'] and the result of the wp_mail_content_type filter.

Change History (4)

#1 @DrewAPicture
5 years ago

  • Keywords good-first-bug needs-patch added

#2 @pento
5 years ago

  • Owner set to pento
  • Resolution set to fixed
  • Status changed from new to closed

In 31860:

Emoji: When we're replacing emoji with <img>s in email, we can only do that if the Content-Type is text/html - otherwise, they'll show up in the email as the HTML string.

Fixes #31720

#3 @pento
5 years ago

  • Keywords good-first-bug needs-patch removed

#4 @pento
4 years ago

  • Component changed from Mail to Emoji
Note: See TracTickets for help on using tickets.