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:
parent
a5b35b6ea4
commit
12c019a901
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user