wp_insert_comment action
git-svn-id: http://svn.automattic.com/wordpress/trunk@10465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
94756368e6
commit
94ac6098e2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue