Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#8035 closed enhancement (fixed)

Hide widget count when no sidebars defined

Reported by: scribu Owned by: westi
Milestone: 2.8 Priority: normal
Severity: minor Version:
Component: Administration Keywords: has-patch
Focuses: Cc:
PR Number:


In the Right Now section of the Dashboard, the "using x widgets" should be hidden when there are no sidebars defined for the current theme.

Attachments (1)

without_widgets.diff (3.9 KB) - added by scribu 11 years ago.
If there are no sidebars defined, writes "whitout widgets"

Download all attachments as: .zip

Change History (12)

#1 @scribu
11 years ago

  • Keywords has-patch added; needs-patch removed

#2 @scribu
11 years ago

  • Cc scribu added

11 years ago

If there are no sidebars defined, writes "whitout widgets"

#3 @ryan
11 years ago

  • Milestone changed from 2.7 to 2.8

There are some other areas that need to be cleaned up too. We can live with "0 widgets" for now and fix this completely in 2.8.

#4 @westi
11 years ago

  • Owner changed from anonymous to westi
  • Status changed from new to assigned

#6 @azaozz
11 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from assigned to closed

This text doesn't exist any more.

#7 @scribu
11 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

Yes it does. In WP 2.8 bleeding, in the "Right Now" box: Theme WordPress Default with 0 Widgets.

#8 @scribu
11 years ago

...and the same text is visible, even if I comment out the register_sidebar code from functions.php

#9 @scribu
11 years ago

  • Milestone set to 2.9

#10 @azaozz
11 years ago

Right, my mistake. Don't know why I thought it was on the widgets page.

#11 @azaozz
11 years ago

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

Changed the patch a bit, the widgets count wasn't right either, fixed in [11131]

Note: See TracTickets for help on using tickets.