Make WordPress Core

Opened 13 years ago

Closed 9 years ago

#16497 closed enhancement (fixed)

Filter css class for wp_list_category elements

Reported by: sivel's profile sivel Owned by: boonebgorges's profile boonebgorges
Milestone: 4.2 Priority: normal
Severity: normal Version: 3.1
Component: Taxonomy Keywords: has-patch
Focuses: template Cc:


Add a filter 'category_css_class' so that we have the equivalent in the Category_Walker class for what we have for pages (page_css_class).

Attachments (1)

16497.diff (533 bytes) - added by sivel 13 years ago.

Download all attachments as: .zip

Change History (6)

13 years ago

#1 @ocean90
13 years ago

  • Keywords has-patch added

#2 @nacin
10 years ago

  • Component changed from Template to Taxonomy
  • Focuses template added

#3 @boonebgorges
9 years ago

  • Milestone changed from Future Release to 4.2

#4 @boonebgorges
9 years ago

In 31026:

Add tests for wp_list_categories() CSS class generation.

See #16497.

#5 @boonebgorges
9 years ago

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

In 31027:

Introduce 'category_css_classes' filter.

Paralleling the 'page_css_classes' filter, this allows developers to modify
the list of CSS classes used when creating category list markup via

Props sivel.
Fixes #16497.

Note: See TracTickets for help on using tickets.