wp_insert_comment action

git-svn-id: http://svn.automattic.com/wordpress/trunk@10465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-01-29 22:22:20 +00:00
parent 94756368e6
commit 94ac6098e2
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}