Commit bc464109 authored by joe's avatar joe Committed by lechuck

Patch to stop recaptcha from dumbly use http:// schema when we are on https

parent 8040e6c6
......@@ -59,9 +59,13 @@ if (!class_exists('WPPlugin')) {
static function plugins_url() {
if (WPPlugin::determine_environment() == Environment::WordPressMU)
return site_url() . '/wp-content/mu-plugins';
$url = site_url() . '/wp-content/mu-plugins';
else
return site_url() . '/wp-content/plugins';
$url = site_url() . '/wp-content/plugins';
if ($_SERVER['https'] = 'on') {
$url = str_replace('http://', 'https://', $url);
}
return $url;
}
static function path_to_plugin_directory() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment