From 5448fc8160e85e73569248eea795c5ac64b2d1c1 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@10541 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) {