From b614486625b8369c9c1441b9deb7bcdded615992 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 26 Jun 2007 19:11:23 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 28457557e5..cd3222e7ff 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -170,11 +170,9 @@ function wp_mail( $to, $subject, $message, $headers = '' ) { // Compact the input, apply the filters, and extract them back out extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers' ) ), EXTR_SKIP ); - // Default headers + // Headers if ( empty( $headers ) ) { - $headers = array( - 'MIME-Version' => '1.0' - ); + $headers = array(); } elseif ( !is_array( $headers ) ) { // Explode the headers out, so this function can take both // string headers and an array of headers.