Don't add MIME-Version header twice (PHPMailer already adds it). see #4296

git-svn-id: https://develop.svn.wordpress.org/trunk@5763 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-06-26 19:11:23 +00:00
parent e51152beb3
commit b614486625
1 changed files with 2 additions and 4 deletions

View File

@ -170,11 +170,9 @@ function wp_mail( $to, $subject, $message, $headers = '' ) {
// Compact the input, apply the filters, and extract them back out // Compact the input, apply the filters, and extract them back out
extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers' ) ), EXTR_SKIP ); extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers' ) ), EXTR_SKIP );
// Default headers // Headers
if ( empty( $headers ) ) { if ( empty( $headers ) ) {
$headers = array( $headers = array();
'MIME-Version' => '1.0'
);
} elseif ( !is_array( $headers ) ) { } elseif ( !is_array( $headers ) ) {
// Explode the headers out, so this function can take both // Explode the headers out, so this function can take both
// string headers and an array of headers. // string headers and an array of headers.