Make WordPress Core

Opened 5 years ago

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


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 5 years ago.
A starter for one

Download all attachments as: .zip

Change History (5)

5 years ago

A starter for one

#1 @westi
5 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 :-(

#2 @scribu
5 years ago

  • Status changed from new to accepted

#3 @scribu
5 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.

#4 @scribu
5 years ago

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