Make WordPress Core

Opened 18 years ago

Closed 16 years ago

Last modified 7 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 18 years ago.
Diff to release version 2.0.2 of the file

Download all attachments as: .zip

Change History (5)

@janX
18 years ago

Diff to release version 2.0.2 of the file

#1 @matt
17 years ago

  • Milestone changed from 2.1 to 2.2

#2 @foolswisdom
17 years ago

  • Milestone changed from 2.2 to 2.3

#3 @ryan
16 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.


7 years ago

Note: See TracTickets for help on using tickets.