Make WordPress Core


Ignore:
Timestamp:
03/28/2014 02:43:04 AM (12 years ago)
Author:
nacin
Message:

Always decode special characters for email subjects.

props tlovett1, jeremyfelt.
fixes #25346.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r27673 r27801  
    24212421        $email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result );
    24222422
    2423         wp_mail( $email['to'], $email['subject'], $email['body'], $email['headers'] );
     2423        wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
    24242424    }
    24252425
     
    25712571        $email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results );
    25722572
    2573         wp_mail( $email['to'], $email['subject'], $email['body'], $email['headers'] );
     2573        wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
    25742574    }
    25752575}
Note: See TracChangeset for help on using the changeset viewer.