git-svn-id: http://svn.automattic.com/wordpress/trunk@1968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8a663f2f25
commit
766178708e
|
@ -25,7 +25,7 @@ $user_ip = apply_filters('pre_comment_user_ip', $_SERVER['REMOTE_ADDR']);
|
||||||
if ( get_settings('require_name_email') && ('' == $email || '' == $author) )
|
if ( get_settings('require_name_email') && ('' == $email || '' == $author) )
|
||||||
die( __('Error: please fill the required fields (name, email).') );
|
die( __('Error: please fill the required fields (name, email).') );
|
||||||
|
|
||||||
if ( '' == $comment )
|
if ( '' == $comment_content )
|
||||||
die( __('Error: please type a comment.') );
|
die( __('Error: please type a comment.') );
|
||||||
|
|
||||||
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type');
|
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type');
|
||||||
|
|
Loading…
Reference in New Issue