Quantcast
Viewing all articles
Browse latest Browse all 16

Reply To: [Plugin: WP-reCAPTCHA] SSL Support

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.


Viewing all articles
Browse latest Browse all 16

Trending Articles