Comments from name even if no email given.

git-svn-id: http://svn.automattic.com/wordpress/trunk@357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-09-03 17:45:45 +00:00
parent ff6e5c93f3
commit af51dd7eac

View File

@ -107,7 +107,7 @@ if ($ok) { // if there was no comment from this IP in the last 10 seconds
if ('' != $comment_author_email) { if ('' != $comment_author_email) {
$from = "From: \"$comment_author\" <$comment_author_email>\r\n"; $from = "From: \"$comment_author\" <$comment_author_email>\r\n";
} else { } else {
$from = 'From: "' . stripslashes($blogname) . "\" <$authordata->user_email>\r\n"; $from = 'From: "' . stripslashes($comment_author) . "\" <$authordata->user_email>\r\n";
} }
$from .= "X-Mailer: WordPress $b2_version with PHP/" . phpversion(); $from .= "X-Mailer: WordPress $b2_version with PHP/" . phpversion();