[wp-cvs] wordpress/wp-includes functions.php,1.183,1.184
Donncha O Caoimh
donncha at users.sourceforge.net
Fri Oct 8 11:52:25 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8481/wp-includes
Modified Files:
functions.php
Log Message:
Define message header if blank.
Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.183
retrieving revision 1.184
diff -C2 -d -r1.183 -r1.184
*** functions.php 6 Oct 2004 13:10:52 -0000 1.183
--- functions.php 8 Oct 2004 11:52:23 -0000 1.184
***************
*** 1872,1876 ****
function wp_mail($to, $subject, $message, $headers = '', $more = '') {
if ( function_exists('mb_send_mail') )
! return mb_send_mail($to, $subject, $message, $headers, $more);
else
return mail($to, $subject, $message, $headers, $more);
--- 1872,1884 ----
function wp_mail($to, $subject, $message, $headers = '', $more = '') {
if ( function_exists('mb_send_mail') )
! {
! if( $headers == '' )
! {
! $headers = "MIME-Version: 1.0\r\n" .
! "From: " . $to . " <" . $to . ">\r\n" .
! "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";
! }
! return mb_send_mail($to, $subject, $message, $headers, $more);
! }
else
return mail($to, $subject, $message, $headers, $more);
More information about the cvs
mailing list