mirror of
git://develop.git.wordpress.org/
synced 2025-04-04 20:23:27 +02:00
Docs: Add a @see
reference to the wp_mail_content_type
filter in wp_staticize_emoji_for_email()
.
Follow-up to [31860]. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@51589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
232c30f18e
commit
1c76a1652d
@ -5876,11 +5876,11 @@ function wp_staticize_emoji_for_email( $mail ) {
|
||||
}
|
||||
|
||||
/*
|
||||
* We can only transform the emoji into images if it's a text/html email.
|
||||
* We can only transform the emoji into images if it's a `text/html` email.
|
||||
* To do that, here's a cut down version of the same process that happens
|
||||
* in wp_mail() - get the Content-Type from the headers, if there is one,
|
||||
* then pass it through the wp_mail_content_type filter, in case a plugin
|
||||
* is handling changing the Content-Type.
|
||||
* in wp_mail() - get the `Content-Type` from the headers, if there is one,
|
||||
* then pass it through the {@see 'wp_mail_content_type'} filter, in case
|
||||
* a plugin is handling changing the `Content-Type`.
|
||||
*/
|
||||
$headers = array();
|
||||
if ( isset( $mail['headers'] ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user