diff --git a/wp-comments-post.php b/wp-comments-post.php index 966c5e6d25..c7b5ef33ec 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -30,6 +30,8 @@ if ( empty($status->comment_status) ) { } elseif ( in_array($status->post_status, array('draft', 'pending') ) ) { do_action('comment_on_draft', $comment_post_ID); exit; +} else { + do_action('pre_comment_on_post', $comment_post_ID); } $comment_author = ( isset($_POST['author']) ) ? trim(strip_tags($_POST['author'])) : null;