Opened 9 months ago
Last modified 6 months ago
#21856 new enhancement
Hide category selection when no posts are available
| Reported by: |
|
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)
Change History (8)
comment:1
SergeyBiryukov — 9 months ago
- Component changed from General to Administration
comment:3
in reply to:
↑ 2
CoenJacobs — 9 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.
Seems like the problem has been taken care of in revision 21806
comment:5
in reply to:
↑ 4
CoenJacobs — 9 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.

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