WordPress.org

Ready to get started?Download WordPress

Forums

WP-reCAPTCHA
Error Call to undefined function wp_get_current_user() (2 posts)

  1. H0bBIT
    Member
    Posted 3 years ago #

    Hello, has faced such problem. At installation on WordPressMU under the instruction on a site (version WordPress 3.0.1)? All site falls in an error:
    Fatal error: Call to undefined function wp_get_current_user () in /var/www/hobit/data/www/hob-bit.ru/wp-includes/user.php on line 223

    In lines 222-225 there is a following:

    function get_current_user_id () {
    $user = wp_get_current_user ();
    return (isset ($user-> ID)? (int) $user-> ID: 0);
    }

    Prompt a solution of a problem.

    P.S. Forgive for broken English, I from Russia.

  2. BlaenkDenum
    Member
    Posted 3 years ago #

    Hey H0bBIT, I have submitted a fix as version 2.9.8.2 Take a look at this post.

    Sorry for any inconvenience.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic