git-svn-id: https://develop.svn.wordpress.org/trunk@2905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-09-22 21:14:52 +00:00
parent 24738f1176
commit 861c7128b2
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ function wp_new_comment( $commentdata ) {
$comment_ID = wp_insert_comment($commentdata);
do_action('comment_post', $comment_ID, $commentdata['approved']);
do_action('comment_post', $comment_ID, $commentdata['comment_approved']);
if ( 'spam' !== $commentdata['comment_approved'] ) { // If it's spam save it silently for later crunching
if ( '0' == $commentdata['comment_approved'] )
@ -55,7 +55,7 @@ function wp_new_comment( $commentdata ) {
wp_notify_postauthor($comment_ID, $commentdata['comment_type']);
}
return $comment_id;
return $comment_ID;
}
function wp_insert_comment($commentdata) {