Make WordPress Core

Opened 7 years ago

Closed 6 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:


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

Download all attachments as: .zip

Change History (12)

comment:1 @scribu7 years ago

  • Keywords has-patch added; needs-patch removed

comment:2 @scribu7 years ago

  • Cc scribu added

@scribu7 years ago

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

comment:3 @ryan7 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.

comment:4 @westi7 years ago

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

comment:6 @azaozz6 years ago

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

This text doesn't exist any more.

comment:7 @scribu6 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.

comment:8 @scribu6 years ago

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

comment:9 @scribu6 years ago

  • Milestone set to 2.9

comment:10 @azaozz6 years ago

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

comment:11 @azaozz6 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.