Doesn't work correctly on https
-
I was able to fix it in attachment.php by inserting these lines:
$orig_url = $url; $url = preg_replace("/https?:\/\//", '', $url); $home = preg_replace("/https?:\/\//", '', $home);
just before this line:
$filename = ABSPATH . substr($url, strlen($home) + 1);
and by changing this line:
'url' => $url,
to:
'url' => $orig_url,
https://www.ads-software.com/plugins/json-api/
i’m sure there’s a more elegant way to fix it, but here’s my messy attempt.
thanks!
- The topic ‘Doesn't work correctly on https’ is closed to new replies.