[wp-trac] [WordPress Trac] #27345: Add class to posts list table row if page has children

WordPress Trac noreply at wordpress.org
Tue Mar 11 02:37:54 UTC 2014


#27345: Add class to posts list table row if page has children
-------------------------+-----------------------------
 Reporter:  bravokeyl    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.8.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 If we take a look at current {{{class-wp-posts-list-table.php}}}, classes
 like {{{level-0}}} or {{{level-*}}} are added to the table row which
 indicates the depth of page it is in.It does not give any information
 about whether the page has children as level-0 gets added to every page
 that is not a sub-page that includes pages which doesn't have children.

 What i'm suggesting is we have an extra-class {{{'page-has-children'}}}
 that gets added to row when the page(only page not any custom type post
 which supports hierarchy) has children.

 It will be very helpful to distinctly style page rows , also helpful for
 plugins(not much)which depends on JavaScript to manipulate the list
 management.

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


More information about the wp-trac mailing list