Support » Plugin: WP-reCAPTCHA » [Plugin: WP-reCAPTCHA] SSL Support

  • Resolved WraithKenny


    It’s rather annoying to have spend all this money on an ssl cert, only to have it no display, or worse, have the untrusted warning flash, because a plugin is including a file from the http:// rather than https://

    Support was considered looking at the code, but not for the css.

    It can be easily fixed by replacing: $path = WP_CONTENT_URL . '/plugins/wp-recaptcha/recaptcha.css'; with $path = plugins_url() . '/wp-recaptcha/recaptcha.css';

    The WP_CONTENT_URL doesn’t support https at current, but there’s a ticket to fix it (maybe):

Viewing 7 replies - 1 through 7 (of 7 total)
  • Fixed (as of 3.0 I believe)

    or not… the ticket got punted. so plugins need to be fixed.

    This plugin uses get_option('siteurl'). The function site_url() is a better fit and doesn’t break ssl.

    It looks like you’ve stopped using github for this or I could push you a patch…

    I also have the problem that recaptcha.css is referenced via HTTP instead of HTTPS in this line:

    <link rel=”stylesheet” type=”text/css” href=”” />

    I would love to see this fixed.

    if ( is_ssl() ) {
    	remove_filter('wp_head', array(&$recaptcha, 'register_stylesheets'));
    	remove_filter('admin_head', array(&$recaptcha, 'register_stylesheets'));
    	remove_filter('login_head', array(&$recaptcha, 'registration_style'));
    	remove_filter('wp_footer', array(&$recaptcha, 'save_comment_script'));
    	remove_filter('wp_head', array(&$recaptcha, 'saved_comment'), 0);
    	remove_filter('preprocess_comment', array(&$recaptcha, 'check_comment'), 0);
    	remove_filter('comment_post_redirect', array(&$recaptcha, 'relative_redirect'), 0, 2);

    putting this in the theme’s function file will prevent wp-recaptcha from adding it’s crap on secure pages, and prevent the breakage of the certificate.

    Fixed in plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-reCAPTCHA] SSL Support’ is closed to new replies.