Skip to content

Commit

Permalink
Set siteverify link for www.recaptcha.net
Browse files Browse the repository at this point in the history
Fixes #1430
  • Loading branch information
takayukister committed Jun 13, 2024
1 parent 7cdb5af commit 6ddc993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/recaptcha/service.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ public function verify( $token ) {

$endpoint = 'https://www.google.com/recaptcha/api/siteverify';

if ( apply_filters( 'wpcf7_use_recaptcha_net', false ) ) {
$endpoint = 'https://www.recaptcha.net/recaptcha/api/siteverify';
}

$sitekey = $this->get_sitekey();
$secret = $this->get_secret( $sitekey );

Expand Down

0 comments on commit 6ddc993

Please sign in to comment.