[wp-trac] [WordPress Trac] #24428: wp_list_categories 'show_option_all' have not class element

WordPress Trac noreply at wordpress.org
Wed May 29 00:01:47 UTC 2013


#24428: wp_list_categories 'show_option_all' have not class element
--------------------------+------------------------------
 Reporter:  Alexufo       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Template      |     Version:  2.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Well, it's not really a category, so `.current-cat` doesn't seem
 applicable here.

 We could probably add `.current-list-item` class (similar to `.current-
 menu-item` for nav menus). Not sure if that's necessary though, a simple
 workaround for a theme that uses `body_class()` is `.home .cat-items-all`
 (with [attachment:24428.patch]) or `.home .categories > ul > li:first-
 child`.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24428#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list