Skip to content

Commit

Permalink
invalidate captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
aurovrata authored Jul 9, 2020
1 parent b8823c1 commit e531bb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/class-cf7-grid-layout-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,7 @@ public function filter_wpcf7_validate($result, $tags){
case 'captchar': //cannot be called twice, hence see if already invalidated.
/** @since 3.3.3 check if invalidated previously */
if( isset($invalids[$tag['name']]) ){
$result->invalidate( $tag, $invalids[$tag['name']]['reason']);
$validation[$tag['name']] = $invalids[$tag['name']]['reason'];
$validated[$tag['name']] = $tag;
}
Expand Down

0 comments on commit e531bb6

Please sign in to comment.