Opened 2 years ago

Closed 2 years ago

#15641 closed defect (bug) (wontfix)

Terms list table shouldn't display if no terms

Reported by: westi Owned by: scribu
Priority: normal Milestone:
Component: Administration Version: 3.1
Severity: normal Keywords: close
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 2 years ago.
A starter for one

Download all attachments as: .zip

Change History (5)

westi2 years ago

A starter for one

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 :-(

  • Status changed from new to accepted
  • 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.

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