mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
ff6e5c93f3
commit
af51dd7eac
@ -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