WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 10 years ago

#5759 closed defect (bug) (fixed)

Dashboard fails to load when Widgets are disabled

Reported by: spikeyslam Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.5
Component: Widgets Keywords: dev-feedback
Focuses: Cc:

Description

When Widgets are disabled, accessing the Dashboard results in function not found error:

Fatal error: Call to undefined function wp_register_sidebar_widget() in /wordpress/wp-admin/includes/dashboard.php on line 31

Change History (9)

#1 @darkdragon
12 years ago

I've never noticed an option, where you can disable widgets. How exactly did you disable the widgets?

#2 @ryan
12 years ago

Widgets is loaded off of a plugins_loaded hook. Removing that hook will prevent widgets from being loaded. Those doing this should probably allow widgets to load for the admin so that the dashboard will work.

#3 @spikeyslam
12 years ago

Maybe Widgets shouldn't be allowed to be disabled anymore.

#4 @DD32
11 years ago

  • Keywords dev-feedback added

Solution for this? Is it time to move the widget initialisation to an earlier hook? Or just suggest people dont disable them for admin..

#5 @ryan
11 years ago

  • Component changed from Administration to Widgets
  • Owner anonymous deleted

#7 @Denis-de-Bernardy
10 years ago

is this still current with the new interface?

#9 @ryan
10 years ago

  • Milestone changed from 2.9 to 2.8
  • Resolution set to fixed
  • Status changed from new to closed

We always load the widgets API now.

Note: See TracTickets for help on using tickets.