Ticket #47822: 47822.diff
File 47822.diff, 1.8 KB (added by , 4 years ago) |
---|
-
src/wp-includes/formatting.php
5694 5694 return $mail; 5695 5695 } 5696 5696 5697 if( isset( $mail['convert_symbols'] ) && FALSE === $mail['convert_symbols'] ) { 5698 return $mail; 5699 } 5700 5697 5701 /* 5698 5702 * We can only transform the emoji into images if it's a text/html email. 5699 5703 * To do that, here's a cut down version of the same process that happens -
src/wp-includes/pluggable.php
165 165 * @param string $message Message contents 166 166 * @param string|array $headers Optional. Additional headers. 167 167 * @param string|array $attachments Optional. Files to attach. 168 * @param bool $convert_symbols Optional. Passes to 'wp_mail' filter. 168 169 * @return bool Whether the email contents were sent successfully. 169 170 */ 170 function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) {171 function wp_mail( $to, $subject, $message, $headers = '', $attachments = array(), $convert_symbols = TRUE ) { 171 172 // Compact the input, apply the filters, and extract them back out 172 173 173 174 /** … … 178 179 * @param array $args A compacted array of wp_mail() arguments, including the "to" email, 179 180 * subject, message, headers, and attachments values. 180 181 */ 181 $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );182 $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments', 'convert_symbols' ) ); 182 183 183 184 if ( isset( $atts['to'] ) ) { 184 185 $to = $atts['to'];