Skip to content

Commit 731535d

Browse files
committed
fix: verify v2 recaptcha in backend
1 parent cbe7f45 commit 731535d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-recaptcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ function refreshToken() {
497497
*/
498498
public static function verify_recaptcha_on_checkout() {
499499
$url = \home_url( \add_query_arg( null, null ) );
500-
$should_verify_captcha = apply_filters( 'newspack_recaptcha_verify_captcha', self::can_use_captcha( 'v3' ), $url );
500+
$should_verify_captcha = apply_filters( 'newspack_recaptcha_verify_captcha', self::can_use_captcha(), $url );
501501
if ( ! $should_verify_captcha ) {
502502
return;
503503
}

0 commit comments

Comments
 (0)