[resolved] SSL Support (8 posts)

  1. Ken Newman
    Posted 4 years ago #

    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): http://core.trac.wordpress.org/ticket/13941

  2. Ken Newman
    Posted 4 years ago #

    Fixed (as of 3.0 I believe)

  3. Ken Newman
    Posted 4 years ago #

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

  4. Ken Newman
    Posted 4 years ago #

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

  5. Ken Newman
    Posted 4 years ago #

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

  6. hiroprot
    Posted 4 years ago #

    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="http://domain.com/wp-content/plugins/wp-recaptcha/recaptcha.css" />

    I would love to see this fixed.

  7. Ken Newman
    Posted 3 years ago #

    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.

  8. Ken Newman
    Posted 3 years ago #

    Fixed in plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic