mikaeljorhult/wp-plugin-boilerplate — Issue #5: Fatal error when uncommenting require widgets.php
Author: danharper
Created: 2011-10-26 21:43:08+00:00
State: open

When I uncomment the "require_once('widgets.php');" file in the main file, I receive the following error on most admin pages:

Fatal error: Call to undefined function wp_get_current_user() in /Library/WebServer/Sites/wpjobs/wp-includes/capabilities.php on line 1039

It doesn't matter whether 'widgets.php' has anything in or not, the error still occurs?