• Resolved karimun

    (@karimun)


    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 https://www.example.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    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

    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(https://www.example.com);

    this hasn’t worked. would anyone know where I would add my actual home URL?

    Plugin Author Jason Crouse

    (@coolmann)

    Hi Gammassoft,

    change it to

    $this->blog_domain = 'https://www.example.com';

    I will fix it in the code for my next release.

    Camu

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP SlimStat] Dashboard Widget Error’ is closed to new replies.