Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#31720 closed defect (bug) (fixed)

Emoji email filter doesn't check the content type

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

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

  • Keywords good-first-bug needs-patch added

#2 @pento
11 years ago

  • Owner set to pento
  • Resolutionfixed
  • Status newclosed

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

  • Keywords good-first-bug needs-patch removed

#4 @pento
11 years ago

  • Component MailEmoji
Note: See TracTickets for help on using tickets.