Title: [Plugin: WP-reCAPTCHA] SSL Support
Last modified: August 19, 2016

---

# [Plugin: WP-reCAPTCHA] SSL Support

 *  Resolved [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/)
 * 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](http://core.trac.wordpress.org/ticket/13941)

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

 *  Thread Starter [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [15 years ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021283)
 * Fixed (as of 3.0 I believe)
 *  Thread Starter [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021291)
 * or not… the ticket got punted. so plugins need to be fixed.
 *  Thread Starter [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021292)
 * This plugin uses `get_option('siteurl')`. The function `site_url()` is a better
   fit and doesn’t break ssl.
 *  Thread Starter [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021293)
 * It looks like you’ve stopped using github for this or I could push you a patch…
 *  [hiroprot](https://wordpress.org/support/users/hiroprot/)
 * (@hiroprot)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021299)
 * 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&#8221](http://domain.com/wp-content/plugins/wp-recaptcha/recaptcha.css&#8221);/
   >
 * I would love to see this fixed.
 *  Thread Starter [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021325)
 *     ```
       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.
 *  Thread Starter [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021336)
 * Fixed in plugin.

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

The topic ‘[Plugin: WP-reCAPTCHA] SSL Support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-recaptcha.svg)
 * [WP-reCAPTCHA](https://wordpress.org/plugins/wp-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-recaptcha/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-ssl-support/#post-2021336)
 * Status: resolved