[wp-trac] [WordPress Trac] #32995: Flag Emoji in emails substituted by img HTML tag, alt attribute is erroneously substituted

WordPress Trac noreply at wordpress.org
Tue Jul 14 15:59:44 UTC 2015


#32995: Flag Emoji in emails substituted by img HTML tag, alt attribute is
erroneously substituted
--------------------------+------------------------------
 Reporter:  cesargml      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  4.2.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by MattyRob):

 I see what you mean, coming from this line:
 `$entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley"
 style="height: 1em; max-height: 1em;" />', $cdn_url . $char . $ext,
 html_entity_decode( $emoji ) );` which is inserting the Emoji code as the
 'alt' parameter.

 I suppose if it is then parsed again it'll cause issues.

 @pento - Any thoughts?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32995#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list