WordPress.org

Support

Support » Plugins and Hacks » WP-reCAPTCHA » mixed content warning in https

mixed content warning in https

  • When using wordpress in https we get a mixed content warning because of a link to
    http://mysite/wp-content/plugins/wp-recaptcha/recaptcha.css

    Something along the lines of the following in wp-plugin.php worked for us:

    static function plugins_url() {
      $siteurl = get_option('siteurl');
      if (isset($_SERVER['HTTPS'])) {
        $siteurl = str_ireplace('http://', 'https://', $siteurl);
      }
      if (WPPlugin::determine_environment() == Environment::WordPressMU)
        return $siteurl . '/wp-content/mu-plugins';
      else
        return $siteurl . '/wp-content/plugins';
    }
  • The topic ‘mixed content warning in https’ is closed to new replies.
Skip to toolbar