Comments from name even if no email given.

git-svn-id: https://develop.svn.wordpress.org/trunk@357 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-09-03 17:45:45 +00:00
parent a5b35b6ea4
commit 12c019a901

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) {
$from = "From: \"$comment_author\" <$comment_author_email>\r\n";
} 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();