karimun
Member
Posted 11 months ago #
As the function home_url() was introduced in WordPress v3, following error appears in WordPress 2.9.2:
Call to undefined function home_url() in ../wp-content/plugins/wp-slimstat/view/wp-slimstat-view.php on line 32
If you are on WordPress 2.9.2, you may add in line 32 your actual home URL, like http://www.example.com
Good point Karimun,
I thought that function was already there in 2.9.x, maybe I should just replace it with something else to make my plugin fully compatible with 2.9.x. What do you think?
Camu
gammassoft
Member
Posted 10 months ago #
Hi there,
I'm not very php savvy and I have tried changing line 32
$this->blog_domain = home_url();
to...
$this->blog_domain = home_url(http://www.example.com);
this hasn't worked. would anyone know where I would add my actual home URL?
Hi Gammassoft,
change it to
$this->blog_domain = 'http://www.example.com';
I will fix it in the code for my next release.
Camu