Skip to content

Commit

Permalink
fix: verify v2 recaptcha in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenn00dle committed Dec 20, 2024
1 parent cbe7f45 commit 731535d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ function refreshToken() {
*/
public static function verify_recaptcha_on_checkout() {
$url = \home_url( \add_query_arg( null, null ) );
$should_verify_captcha = apply_filters( 'newspack_recaptcha_verify_captcha', self::can_use_captcha( 'v3' ), $url );
$should_verify_captcha = apply_filters( 'newspack_recaptcha_verify_captcha', self::can_use_captcha(), $url );
if ( ! $should_verify_captcha ) {
return;
}
Expand Down

0 comments on commit 731535d

Please sign in to comment.