Make WordPress Core


Ignore:
Timestamp:
03/20/2015 12:31:30 PM (10 years ago)
Author:
pento
Message:

When converting emoji in email to static images, check that the message is defined, otherwise we could cause PHP warnings.

Props nerrad.

Fixes #31708.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r31791 r31847  
    42004200 */
    42014201function _wp_staticize_emoji_for_email( $mail ) {
    4202     $mail['message'] = wp_staticize_emoji( $mail['message'], true );
     4202    if ( isset( $mail['message'] ) ) {
     4203        $mail['message'] = wp_staticize_emoji( $mail['message'], true );
     4204    }
    42034205    return $mail;
    42044206}
Note: See TracChangeset for help on using the changeset viewer.