[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
Wed Jul 15 09:33:16 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):

 @cesargml

 I can't see anywhere that WooCommerce handles for Emojis. There are a few
 filters for email content however so this could be impleted through a
 little code, try the following and see if it helps:


 {{{
 function woocommerce_emoji_handler( $content ) {
         return wp_staticize_emoji( $content );
 }

 add_filter( 'woocommerce_mail_content', 'woocommerce_emoji_handler' );
 add_filter( 'woocommerce_email_content_low_stock',
 'woocommerce_emoji_handler' );
 add_filter( 'woocommerce_email_content_no_stock',
 'woocommerce_emoji_handler' );
 add_filter( 'woocommerce_email_content_backorder',
 'woocommerce_emoji_handler' );
 }}}

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


More information about the wp-trac mailing list