Make WordPress Core

Opened 19 years ago

Closed 18 years ago

Last modified 8 years ago

#2710 closed defect (bug) (fixed)

list_cats / wp_list_cats: hide_empty does not hide cats with non-empty sub-cats

Reported by: janx's profile janX 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)

template-functions-category.php.diff (804 bytes) - added by janX 19 years ago.
Diff to release version 2.0.2 of the file

Download all attachments as: .zip

Change History (5)

@janX
19 years ago

Diff to release version 2.0.2 of the file

#1 @matt
18 years ago

  • Milestone changed from 2.1 to 2.2

#2 @foolswisdom
18 years ago

  • Milestone changed from 2.2 to 2.3

#3 @ryan
18 years ago

  • Resolution set to fixed
  • Status changed from new to closed

This ticket was mentioned in Slack in #forums by sergey. View the logs.


8 years ago

Note: See TracTickets for help on using tickets.