Make WordPress Core


Ignore:
Timestamp:
05/14/2005 12:22:30 AM (19 years ago)
Author:
matt
Message:

Newline regression - http://mosquito.wordpress.org/view.php?id=263 - Hat tip: mlittle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable-functions.php

    r2556 r2607  
    6161function wp_mail($to, $subject, $message, $headers = '') {
    6262    if( $headers == '' ) {
    63         $headers = "MIME-Version: 1.0\r\n" .
    64             "From: " . get_settings('admin_email') . "\r\n" .
    65             "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";
     63        $headers = "MIME-Version: 1.0\n" .
     64            "From: " . get_settings('admin_email') . "\n" .
     65            "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
    6666    }
    6767
     
    217217    }
    218218
    219     $message_headers = "MIME-Version: 1.0\r\n"
    220         . "$from\r\n"
    221         . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";
     219    $message_headers = "MIME-Version: 1.0\n"
     220        . "$from\n"
     221        . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
    222222
    223223    @wp_mail($user->user_email, $subject, $notify_message, $message_headers);
Note: See TracChangeset for help on using the changeset viewer.