Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#8035 closed enhancement (fixed)

Hide widget count when no sidebars defined

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

Description

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 15 years ago.
If there are no sidebars defined, writes "whitout widgets"

Download all attachments as: .zip

Change History (12)

#1 @scribu
15 years ago

  • Keywords has-patch added; needs-patch removed

#2 @scribu
15 years ago

  • Cc scribu added

@scribu
15 years ago

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

#3 @ryan
15 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
15 years ago

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

#6 @azaozz
15 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
15 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
15 years ago

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

#9 @scribu
15 years ago

  • Milestone set to 2.9

#10 @azaozz
15 years ago

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

#11 @azaozz
15 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.