diff --git a/src/Plugin.php b/src/Plugin.php index 828ae31d..85e6f0f6 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -73,6 +73,14 @@ private function fetchSettings() { } } + + if (!isset($options['proxy']) || empty($options['proxy'])) { + + if (defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT')) { + $options['proxy'] = WP_PROXY_HOST.":". WP_PROXY_PORT; + } + + } if (!isset($options['server_side_access_token']) || empty($options['server_side_access_token'])) {