Opened 5 years ago

Closed 4 years ago

#8035 closed enhancement (fixed)

Hide widget count when no sidebars defined

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

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

Download all attachments as: .zip

Change History (12)

  • Keywords has-patch added; needs-patch removed
  • Cc scribu added

scribu5 years ago

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

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

  • Owner changed from anonymous to westi
  • Status changed from new to assigned
  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from assigned to closed

This text doesn't exist any more.

  • 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.

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

  • Milestone set to 2.9

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

  • 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.