[wp-trac] [WordPress Trac] #33565: Add option to pass an array of objects or IDs to $current_category in wp_list_categories()

WordPress Trac noreply at wordpress.org
Sat Aug 29 19:45:38 UTC 2015


#33565: Add option to pass an array of objects or IDs to $current_category in
wp_list_categories()
-------------------------+---------------------------
 Reporter:  vilkatis     |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.4
Component:  Taxonomy     |     Version:  trunk
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33804"]:
 {{{
 #!CommitTicketReference repository="" revision="33804"
 In `wp_list_categories()`, 'current_category' should accept an array of
 values.

 This allows the 'current-cat' or 'current-cat-parent' classes to be
 applied
 to more than one item in the list.

 Props vilkatis.
 Fixes #33565.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33565#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list