From 434ee3acd546b7787bee803761b2af869b894ca0 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 14 May 2005 00:22:30 +0000 Subject: [PATCH] Newline regression - http://mosquito.wordpress.org/view.php?id=263 - Hat tip: mlittle git-svn-id: http://svn.automattic.com/wordpress/trunk@2607 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable-functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/pluggable-functions.php b/wp-includes/pluggable-functions.php index 9279460818..f16bbfe66c 100644 --- a/wp-includes/pluggable-functions.php +++ b/wp-includes/pluggable-functions.php @@ -60,9 +60,9 @@ endif; if ( !function_exists('wp_mail') ) : function wp_mail($to, $subject, $message, $headers = '') { if( $headers == '' ) { - $headers = "MIME-Version: 1.0\r\n" . - "From: " . get_settings('admin_email') . "\r\n" . - "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n"; + $headers = "MIME-Version: 1.0\n" . + "From: " . get_settings('admin_email') . "\n" . + "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n"; } return @mail($to, $subject, $message, $headers); @@ -216,9 +216,9 @@ function wp_notify_postauthor($comment_id, $comment_type='') { $from = 'From: "' . $comment->comment_author . "\" <$comment->comment_author_email>"; } - $message_headers = "MIME-Version: 1.0\r\n" - . "$from\r\n" - . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n"; + $message_headers = "MIME-Version: 1.0\n" + . "$from\n" + . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n"; @wp_mail($user->user_email, $subject, $notify_message, $message_headers);