Commit d6a21d6f authored by joe's avatar joe Committed by agata

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

parent d54f0470
......@@ -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