got the same problem.
solution #1 : deregister google-recaptcha and register again
example: put this code inside your themes function.php
function degl_recaptcha_enqueue_scripts() {
if ( ! is_admin() ) {
$url = 'https://www.google.com/recaptcha/api.js';
wp_deregister_script( 'google-recaptcha', $url, array(), '2.0', true );
wp_register_script( 'google-recaptcha', $url, array(), '2.1', true );
wp_enqueue_script( 'google-recaptcha' );
}
}
add_action( 'wp_enqueue_scripts', 'degl_recaptcha_enqueue_scripts' );
solution #2 comment out some lines in contact-form-7/recaptcha.php
around line 243 make it look like
function wpcf7_recaptcha_enqueue_scripts() {
$url = 'https://www.google.com/recaptcha/api.js';
// $url = add_query_arg( array(
// 'onload' => 'recaptchaCallback',
// 'render' => 'explicit',
// ), $url );
wp_register_script( 'google-recaptcha', $url, array(), '2.0', true );
}
for some (probably early recaptcha implementation method) the plugin author passes arguments to go along with the recaptcha script. It looks like those methods are not supported anymore, but i didn’t verify this. I am just happy the box is showing up. Seems like an easy fix for the next version. fingers crossed.
-
This reply was modified 7 years, 9 months ago by
bort.
-
This reply was modified 7 years, 9 months ago by
bort.