Make WordPress Core

Opened 16 years ago

Closed 12 years ago

#16497 closed enhancement (fixed)

Filter css class for wp_list_category elements

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

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

Download all attachments as: .zip

Change History (6)

@sivel
16 years ago

#1 @ocean90
16 years ago

  • Keywords has-patch added

#2 @nacin
13 years ago

  • Component TemplateTaxonomy
  • Focuses template added

#3 @boonebgorges
12 years ago

  • Milestone Future Release4.2

#4 @boonebgorges
12 years ago

In 31026:

Add tests for wp_list_categories() CSS class generation.

See #16497.

#5 @boonebgorges
12 years ago

  • Owner set to boonebgorges
  • Resolutionfixed
  • Status newclosed

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.