Trim comment info. http://mosquito.wordpress.org/view.php?id=1183 Props: ryanduff
git-svn-id: http://svn.automattic.com/wordpress/trunk@2490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
19c83838cf
commit
ea350cb922
|
@ -13,10 +13,10 @@ if ( empty($post_status) ) {
|
||||||
die( __('Sorry, comments are closed for this item.') );
|
die( __('Sorry, comments are closed for this item.') );
|
||||||
}
|
}
|
||||||
|
|
||||||
$comment_author = $_POST['author'];
|
$comment_author = trim($_POST['author']);
|
||||||
$comment_author_email = $_POST['email'];
|
$comment_author_email = trim($_POST['email']);
|
||||||
$comment_author_url = $_POST['url'];
|
$comment_author_url = trim($_POST['url']);
|
||||||
$comment_content = $_POST['comment'];
|
$comment_content = trim($_POST['comment']);
|
||||||
|
|
||||||
// If the user is logged in
|
// If the user is logged in
|
||||||
get_currentuserinfo();
|
get_currentuserinfo();
|
||||||
|
|
Loading…
Reference in New Issue