From 731535dc3c2439eadfccff46522a705db0f104be Mon Sep 17 00:00:00 2001 From: Rasmy Nguyen Date: Fri, 20 Dec 2024 11:35:36 -0500 Subject: [PATCH] fix: verify v2 recaptcha in backend --- includes/class-recaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-recaptcha.php b/includes/class-recaptcha.php index f06d767a64..4db93ae720 100644 --- a/includes/class-recaptcha.php +++ b/includes/class-recaptcha.php @@ -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; }