From 861c7128b2fdbe1a3cf57b874db9ed78acadc411 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 22 Sep 2005 21:14:52 +0000 Subject: [PATCH] Typos git-svn-id: https://develop.svn.wordpress.org/trunk@2905 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 842135ef68..499f237620 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -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) {