[wp-trac] [WordPress Trac] #33585: Improve wp_list_categories to support multiple taxonomies

WordPress Trac noreply at wordpress.org
Thu Jun 4 05:29:17 UTC 2020


#33585: Improve wp_list_categories to support multiple taxonomies
-------------------------+---------------------
 Reporter:  bordoni      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:
Component:  Taxonomy     |     Version:  2.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+---------------------
Changes (by talldanwp):

 * version:  4.4 => 2.1


Comment:

 Hi @bordoni, thanks for creating the ticket and apologies it took such a
 long time to receive a response.

 The ticket was discussed in a triage meeting in slack (viewing the
 conversation will require a Making WordPress slack account -
 https://wordpress.slack.com/archives/C02RQBWTW/p1591247379036400).

 There were a few points noted in the meeting:
 - A way forward might be to introduce a new `wp_list_terms` function for
 listing terms generically. `wp_list_categories` could then be re-written
 to use `wp_list_terms`.
 - The `current_category` param was changed in 4.4 to accept an array, so
 there is some precedent for this kind of change.
 - Unit tests should be added for this change.

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


More information about the wp-trac mailing list