A Fine Fix for “get_currentuserinfo undefined”
If you write a Wordpress plugin that calls the function “get_currentuserinfo()”, you should be aware that this could trigger the fatal error, “get_currentuserinfo undefined’, in some Wordpress configurations. Depending on what your plugin does, this error could impact a Wordpress site’s display, so it is important to prevent it from ever happening.
One fix (as published by several WP bloggers) is to edit your plugin to add the code, include "/wp-includes/pluggable.php"
A better fix is to include a priority argument with your plugin hook function… Read more.

