Trim comment info. http://mosquito.wordpress.org/view.php?id=1183 Props: ryanduff
git-svn-id: https://develop.svn.wordpress.org/trunk@2490 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
57fe641ff1
commit
c5646b894e
@ -13,10 +13,10 @@ if ( empty($post_status) ) {
|
||||
die( __('Sorry, comments are closed for this item.') );
|
||||
}
|
||||
|
||||
$comment_author = $_POST['author'];
|
||||
$comment_author_email = $_POST['email'];
|
||||
$comment_author_url = $_POST['url'];
|
||||
$comment_content = $_POST['comment'];
|
||||
$comment_author = trim($_POST['author']);
|
||||
$comment_author_email = trim($_POST['email']);
|
||||
$comment_author_url = trim($_POST['url']);
|
||||
$comment_content = trim($_POST['comment']);
|
||||
|
||||
// If the user is logged in
|
||||
get_currentuserinfo();
|
||||
|
Loading…
Reference in New Issue
Block a user