You should change
$siteurl = $_SERVER['HTTP_HOST'];
to
$siteurl = get_option('siteurl');
and then it works like a charm.
You should change
$siteurl = $_SERVER['HTTP_HOST'];
to
$siteurl = get_option('siteurl');
and then it works like a charm.
Seems painfully obvious, now that you point it out. :) Plugin updated--thanks for the fix!
Оne more thing is missed by both of us:
get_option('siteurl') is deprecated, use get_option('url') instead.
This topic has been closed to new replies.