Add 'pre_comment_on_post' action to allow early denial by spam plugin. Fixes #8343.
git-svn-id: https://develop.svn.wordpress.org/trunk@11248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef81374592
commit
79a1dd8466
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user