Remove option from wp_mail(). The additional parameters argument to mail() is non-portable and not useful to us. Props: dalziel. http://mosquito.wordpress.org/view.php?id=855

git-svn-id: https://develop.svn.wordpress.org/trunk@2365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-02-19 04:17:34 +00:00
parent 4b4f99f127
commit 7ba461a96c

View File

@ -1595,13 +1595,13 @@ function htmlentities2($myHTML) {
} }
function wp_mail($to, $subject, $message, $headers = '', $more = '') { function wp_mail($to, $subject, $message, $headers = '') {
if( $headers == '' ) { if( $headers == '' ) {
$headers = "MIME-Version: 1.0\n" . $headers = "MIME-Version: 1.0\n" .
"Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n"; "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
} }
return @mail($to, $subject, $message, $headers, $more); return @mail($to, $subject, $message, $headers);
} }
if ( !function_exists('wp_login') ) : if ( !function_exists('wp_login') ) :