[wp-trac] [WordPress Trac] #38810: Add level class to terms list-table (to match posts)

WordPress Trac noreply at wordpress.org
Wed Nov 16 02:09:14 UTC 2016


#38810: Add level class to terms list-table (to match posts)
-----------------------------+-----------------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Taxonomy         |    Version:
 Severity:  normal           |   Keywords:
  Focuses:  administration   |
-----------------------------+-----------------------------
 I have a need to style & target taxonomy terms of a certain depth in the
 terms list table. Posts already includes a `level-%d` style class, so this
 should be pretty straight forward.

 One caveat is that posts uses `get_post_ancestors()` (and terms will need
 to use `get_ancestors()`) but
 [https://core.trac.wordpress.org/ticket/25791#comment:3 this comment] from
 @nacin may not apply in exactly the same way.

 There also is no `get_term_class()` function ala `get_post_class()`, so
 I'm going to propose a patch for only the single purpose of this ticket
 vs. aiming for feature parity with posts.

 See #25791, r26244. Patch imminent.

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


More information about the wp-trac mailing list