mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
If no angle brackets, assume email address. Props donncha. fixes #9086 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0beccf25aa
commit
59ccfa89ff
@ -306,7 +306,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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user