WordPress.org

Ready to get started?Download WordPress

Forums

WP SlimStat
[resolved] Dashboard Widget Error (4 posts)

  1. karimun
    Member
    Posted 2 years 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

  2. camu
    Member
    Plugin Author

    Posted 2 years ago #

    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

  3. gammassoft
    Member
    Posted 2 years 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?

  4. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Gammassoft,

    change it to

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

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

    Camu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic