Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @cag8f I replied according to the result of the thread.

    
    diff --git a/htdocs/wp-content/plugins/contact-form-7/modules/recaptcha.php b/htdocs/wp-content/plugins/contact-form-7/modules/recaptcha.php
    index 5cb45e8..19e74ce 100755
    --- a/htdocs/wp-content/plugins/contact-form-7/modules/recaptcha.php
    +++ b/htdocs/wp-content/plugins/contact-form-7/modules/recaptcha.php
    @@ -42,7 +42,7 @@ function wpcf7_recaptcha_add_hidden_fields( $fields ) {
            ) );
     }
     
    -add_action( 'wp_footer', 'wpcf7_recaptcha_onload_script', 40, 0 );
    +add_action( 'wp_footer', 'wpcf7_recaptcha_onload_script', 1, 0 );
     
     function wpcf7_recaptcha_onload_script() {
            $service = WPCF7_RECAPTCHA::get_instance();
    @@ -57,7 +57,6 @@ function wpcf7_recaptcha_onload_script() {
    

    You should set priority to 1 instead of 40 at line 45

    add_action( ‘wp_footer’, ‘wpcf7_recaptcha_onload_script’, 1, 0 );

Viewing 2 replies - 1 through 2 (of 2 total)