Skip to content

Commit 90f830e

Browse files
authored
verify captcha on woocommerce reviews (#154)
1 parent b148e81 commit 90f830e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

friendly-captcha/modules/wordpress/wordpress_comments.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ function frcaptcha_wp_comments_logged_in_show_widget()
3636

3737
function frcaptcha_wp_comments_validate($comment)
3838
{
39-
4039
// Skip captcha for trackback or pingback
41-
if ($comment['comment_type'] != '' && $comment['comment_type'] != 'comment') {
40+
if ($comment['comment_type'] != '' && $comment['comment_type'] != 'comment' && $comment['comment_type'] != 'review') {
4241
return $comment;
4342
}
4443

0 commit comments

Comments
 (0)