WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 13 months ago

#30996 new enhancement

As a theme developer / user, I want to have the `current-cat` / `current-cat-parent` classes on the built-in Categories widget based on the current post

Reported by: LongYC Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1
Component: Widgets Keywords:
Focuses: template Cc:

Description

In order to style the built-in Categories widget according to current post / page,
as a theme developer / user,
I want to have the current-cat / current-cat-parent classes on the built-in Categories widget based on the current post (i.e. on single post / page / custom post type).

Implementing this feature / enhancement will involve modifying wp-includes/category-template.php, specifically Walker_Category#start_el.

This is my first time submitting a ticket here, please correct me if I'm not following any guidelines. I did a search on existing tickets for such feature / enhancement but couldn't find any.

Thank you.

Change History (1)

#1 @welcher
5 years ago

Related #23012

Note: See TracTickets for help on using tickets.