Skip to content
Snippets Groups Projects
Commit 912a1e19 authored by joe's avatar joe Committed by agata
Browse files

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

parent 537371d0
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......@@ -72,7 +76,7 @@ if (!class_exists('WPPlugin')) {
static function url_to_plugin_directory() {
$current_directory = basename(dirname(__FILE__));
return WPPlugin::plugins_url() . "/${current_directory}";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment