[wp-trac] [WordPress Trac] #30996: 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

WordPress Trac noreply at wordpress.org
Mon Jan 12 21:17:38 UTC 2015


#30996: 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
-------------------------+-----------------------------
 Reporter:  LongYC       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Widgets      |    Version:  4.1
 Severity:  normal       |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30996>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list