#31708 closed defect (bug) (fixed)
_wp_staticize_emoji_for_email doesn't check for defined key in $mail array.
Reported by: | nerrad | Owned by: | pento |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Emoji | Keywords: | emoji has-patch |
Focuses: | Cc: |
Description
I think this was added in 4.2 along with the emoji stuff (YAY for emoji!). This function should really be checking for whether the $mail['message']
index in the $mail array exists because other wp_mail hooks may be swapping out 'message' in favor of some other thing they are doing (in which case yes they won't get the emoji's in the content). It just prevents php notices from being thrown and breaking ajax requests using wp_mail when WP_DEBUG is on. In encountered such notice breaking things in my testing.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
fix for possible unset index for wp_mail array.