WordPress.org

Ready to get started?Download WordPress

Forums

get_bloginfo error msg (2 posts)

  1. dianet
    Member
    Posted 2 years ago #

    When I turn on wp_debug I get the following msg all the time:

    Notice: get_bloginfo was called with an argument that is deprecated since version 2.2! The home option is deprecated for the family of bloginfo() functions. Use the url option instead. in /home/brucecla/public_html/wp/wp-includes/functions.php on line 3466

    Can some one pls tell me how to fix this ?

  2. Jesper van Engelen
    Member
    Posted 2 years ago #

    As the notice states: the option 'home' is decrepated for the bloginfo() function.

    You should use the 'url' option instead of the 'home' option. So instead of:
    bloginfo('home');
    use
    bloginfo('url');

    The function is most likely called from within an installed plugin or theme. You could probably find where it's called with that argument (using a file search) and upgrade (or manually change (generally not recommended if an update is available)) that particular plugin or theme.

    For a list of non-decrepated options for bloginfo() and get_bloginfo():
    http://codex.wordpress.org/Function_Reference/bloginfo

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.