From b3b3e7f2cea70b7b0ef44842a3ddfda9589f1efd Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 10 Feb 2009 23:51:51 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 0c69afbaac..84511f33a1 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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 ) {