Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi all and Happy New Year!
    I’m getting exactly the same problem.
    I’m using WP 4.0
    It looks like there is a bug in the coding for this. Directly above the spurious value="" /> fragment, this can be seen (in source / inspect view):
    <input name="error_redirect_to" <br="" type="hidden">
    That is definitely squiffy html.
    I have done a bit of investigating and it looks as though the problem lies in how the code within the contact-form-7-recaptcha-extension plugin file,CF7reCAPTCHA.class.php is being rendered. (so it isn’t actually the bwp-recpatcha plugin, itself).
    In that file, in lines 745 to 747, we can see this:

    if ( 'redirect' == $bwp_capt->options[ 'select_response' ]  && ! is_admin() ) {
                                $html .= '<input type="hidden" name="error_redirect_to" value="' . esc_attr_e( $bwp_capt->get_current_comment_page_link() ) . '" />';
                        }

    For some reason, on rendering, a line break is being inserted after the "hidden" attribute.

    I have no idea why, but this looks like the reason for the plugin not working.

    I am going to post this on the extension plugin supprot forum and will see what comes back.

    Cheers
    Neil.

    UPDATE:
    If the BWP reCaptcha options are set so that an invalid captcha response is to “Show an error page just like WordPress does”, then the issue does not appear.

    That works fine for me, but others may want to use a different option, so a fix would be great.

    I am posting this on both this forum and the contact-form-7-recaptcha-extension forum, as it is not too clear to me exactly which one has the problem.

    Cheers,

    Neil.

    Plugin Author Khang Minh

    (@oddoneout)

    Should be resolved in 2.0.0 (released next week).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code `value=”” />` displaying above reCaptcha box in CF7’ is closed to new replies.