Plugin Updates
This commit is contained in:
@@ -53,7 +53,7 @@ function wpcf7_recaptcha_enqueue_scripts() {
|
||||
),
|
||||
array(),
|
||||
'3.0',
|
||||
true
|
||||
array( 'in_footer' => true )
|
||||
);
|
||||
|
||||
$assets = array();
|
||||
@@ -79,7 +79,7 @@ function wpcf7_recaptcha_enqueue_scripts() {
|
||||
)
|
||||
),
|
||||
$assets['version'],
|
||||
true
|
||||
array( 'in_footer' => true )
|
||||
);
|
||||
|
||||
wp_enqueue_script( 'wpcf7-recaptcha' );
|
||||
@@ -135,8 +135,7 @@ function wpcf7_recaptcha_verify_response( $spam, $submission ) {
|
||||
return $spam;
|
||||
}
|
||||
|
||||
$token = isset( $_POST['_wpcf7_recaptcha_response'] )
|
||||
? trim( $_POST['_wpcf7_recaptcha_response'] ) : '';
|
||||
$token = trim( $_POST['_wpcf7_recaptcha_response'] ?? '' );
|
||||
|
||||
if ( $service->verify( $token ) ) { // Human
|
||||
$spam = false;
|
||||
|
||||
Reference in New Issue
Block a user