Did you upgrade to WordPress 2.5 and now discover a fatal error? You may see this error when you log into the admin section if you have enabled the K2 sidebar manager:
Fatal error: Call to undefined function wp_register_sidebar_widget() in /home/.foo/bar/mywebsite.com/wp-admin/includes/dashboard.php on line 31.
Hereâ€™s why: WordPress 2.5 has a slick new dashboard that takes use of widgets to work. K2 blocks widgets when you use Sidebar Modules (which is awesome), so WordPress 2.5 canâ€™t get to widgets.
What this does is make it so that Widgets is disabled for everywhere so that Sidebar Modules will work, EXCEPT for the dashboard. This pretty much solves it.
Nice and simple.
K2 + WordPress 2.5 = Broken? I can fix that
Visit Chaotic Tech for the php code. You’ll simply over-write the widgets-removal.php file. Thanks Brad, you’ve saved me a ton of headaches.