WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#15641 closed defect (bug) (wontfix)

Terms list table shouldn't display if no terms

Reported by: westi Owned by: scribu
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Administration Keywords: close
Focuses: Cc:

Description

If no terms exist in a taxonomy then we should display a message instead of an empty table.

It seems like we should fetch the terms in prepare_items to do this as otherwise the has_items stuff just doesn't work :-(

Attachments (1)

hide-table-if-not-terms-in-progress.diff (3.1 KB) - added by westi 3 years ago.
A starter for one

Download all attachments as: .zip

Change History (5)

westi3 years ago

A starter for one

comment:1 westi3 years ago

As you can see from the patch I started trying to implement this the same way the posts one worked and then found that I couldn't because we don't fetch the terms until we are displaying the table :-(

comment:2 scribu3 years ago

  • Status changed from new to accepted

comment:3 scribu3 years ago

  • Keywords close added

Actually, the current behaviour is consistent with the 3.0 branch.

It's this way because the "Add new term" form on the left automatically populates the table on the right.

comment:4 scribu3 years ago

  • Milestone 3.1 deleted
  • Resolution set to wontfix
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.