Opened 9 months ago

Last modified 6 months ago

#21856 new enhancement

Hide category selection when no posts are available

Reported by: CoenJacobs Owned by:
Priority: normal Milestone: Awaiting Review
Component: Administration Version: 3.1
Severity: normal Keywords: ui-feedback ux-feedback has-patch
Cc:

Description

Just an idea that popped up while testing #21015. The months dropdown gets hidden when there are no posts available, so why not hide the category dropdown list too?

Might be a bit confusing though, when certain elements are not showing when you first start using the screens that these elements are used. But showing something that does not do what it looks like is even more confusing, I think.

Attachments (2)

categories-dropdown.png (13.1 KB) - added by CoenJacobs 9 months ago.
The select box that I'm referring to
21856.diff (499 bytes) - added by egower 6 months ago.

Download all attachments as: .zip

Change History (8)

  • Component changed from General to Administration

comment:2 follow-up: ↓ 3   nofearinc9 months ago

Related to this, the get_terms function returns only taxonomy terms with some posts inside unless hide_empty is assigned a true value.

comment:3 in reply to: ↑ 2   CoenJacobs9 months ago

Replying to nofearinc:

Related to this, the get_terms function returns only taxonomy terms with some posts inside unless hide_empty is assigned a true value.

No, not related. This is on the edit.php screen, where there is also a category selection element. This does not hide when there are no posts but shows categories regardless of having posts.

Last edited 9 months ago by CoenJacobs (previous) (diff)

comment:4 follow-up: ↓ 5   nofearinc9 months ago

Seems like the problem has been taken care of in revision 21806

comment:5 in reply to: ↑ 4   CoenJacobs9 months ago

Replying to nofearinc:

Seems like the problem has been taken care of in revision 21806

No, it is not that. Sorry about not being clearer, but I mean the category select box right above the list of posts on the edit.php screen. See attached screenshot.

The select box that I'm referring to

egower6 months ago

  • Keywords has-patch added

I see where you're referring to.

This is my first attempt at a Wordpress patch, so I apologize in advance if any information I have submitted is in the wrong workflow order. Patch added.

Note: See TracTickets for help on using tickets.