This function had been marked as deprecated.

Populate global variables with information about the currently logged in user.

Signature

get_currentuserinfo()

Return

(boolean|WP_User) False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.

Source

function get_currentuserinfo() {
	_deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_current_user()' );

	return _wp_get_current_user();
}
WP Trac GitHub

Link here