From 94ac6098e2e00dc074e04e3c1189ef3750462beb Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 29 Jan 2009 22:22:20 +0000 Subject: [PATCH] wp_insert_comment action git-svn-id: http://svn.automattic.com/wordpress/trunk@10465 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 18bf0e1965..89c03d044e 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -888,6 +888,9 @@ function wp_insert_comment($commentdata) { if ( $comment_approved == 1) wp_update_comment_count($comment_post_ID); + $comment = get_comment($id); + do_action('wp_insert_comment', $id, $comment); + return $id; }