Ticket #6424 (new defect)

Opened 4 months ago

Last modified 4 months ago

erroneous widget count for sidebars

Reported by: Denis-de-Bernardy Assigned to: anonymous
Priority: lowest Milestone: 2.9
Component: Administration Version: 2.5
Severity: trivial Keywords: needs-patch
Cc:

Description

activate a plugin that adds new widgets, and insert that widget in a sidebar. You get something like:

"You are using 2 widgets in the "Sidebar" sidebar."

deactivate the plugin. the widget no longer exists. You still get:

"You are using 2 widgets in the "Sidebar" sidebar."

Change History

03/28/08 00:54:20 changed by Viper007Bond

  • keywords set to needs-patch.
  • priority changed from low to lowest.
  • severity changed from minor to trivial.

Thought I'd throw in an explanation of what's going on since I've been working with widgets lately.

This is happening because that plugin's widget is still technically in the sidebar, but it just doesn't show up because it doesn't exist. Note that if you re-activate the plugin, the widget will be back in your sidebar exactly where you put it rather than on the left side in the unused widgets list. If you hit save which will refresh the sidebar array, the non-existent widget will be removed.

This inaccurate count occurs because that number is just a simple count($widgets) and done before the widgets are outputted and actually checked to see if they exist.

03/28/08 17:10:30 changed by lloydbudd

  • milestone changed from 2.5 to 2.6.