WordPress.org

Ready to get started?Download WordPress

Forums

WP-reCAPTCHA
mixed content warning in https (1 post)

  1. gnozu
    Member
    Posted 3 years ago #

    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';
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic