If no angle brackets, assume email address. Props donncha. fixes #9086 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@10541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-02-10 23:51:51 +00:00
parent 48d47bee32
commit b3b3e7f2ce
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
$from_email = str_replace( '>', '', $from_email );
$from_email = trim( $from_email );
} else {
$from_name = trim( $content );
$from_email = trim( $content );
}
} elseif ( 'content-type' == strtolower($name) ) {
if ( strpos( $content,';' ) !== false ) {