Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#31720 closed defect (bug) (fixed)

Emoji email filter doesn't check the content type

Reported by: pento's profile pento Owned by: pento's profile pento
Milestone: 4.2 Priority: normal
Severity: normal Version: 4.2
Component: Emoji Keywords: emoji
Focuses: Cc:

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
10 years ago

  • Keywords good-first-bug needs-patch added

#2 @pento
10 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
10 years ago

  • Keywords good-first-bug needs-patch removed

#4 @pento
9 years ago

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