#2710 closed defect (bug) (fixed)
list_cats / wp_list_cats: hide_empty does not hide cats with non-empty sub-cats
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.0.2 |
Component: | Template | Keywords: | list_cats wp_list_cats hide_empty |
Focuses: | Cc: |
Description
I'd like for the hide_empty options in list_cats and wp_list_cats to NOT hide categories which are empty, but that have sub-categories that have posts in them. Looking at the code it is obvious why this happens (template-functions-category.php, line 322). I have a fix for this, though.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Diff to release version 2.0.2 of the file