WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 7 years ago

#16497 closed enhancement (fixed)

Filter css class for wp_list_category elements

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

Description

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 11 years ago.

Download all attachments as: .zip

Change History (6)

@sivel
11 years ago

#1 @ocean90
11 years ago

  • Keywords has-patch added

#2 @nacin
8 years ago

  • Component changed from Template to Taxonomy
  • Focuses template added

#3 @boonebgorges
7 years ago

  • Milestone changed from Future Release to 4.2

#4 @boonebgorges
7 years ago

In 31026:

Add tests for wp_list_categories() CSS class generation.

See #16497.

#5 @boonebgorges
7 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
Walker_Category.

Props sivel.
Fixes #16497.

Note: See TracTickets for help on using tickets.