Opened 11 years ago
Closed 9 years ago
#27345 closed enhancement (wontfix)
Add class to posts list table row if page has children
Reported by: | bravokeyl | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | administration | Cc: |
Description
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.
Attachments (2)
Change History (6)
#4
@
9 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
Hi @bravokeyl, welcome to Trac!
Sorry it took so long for somebody to respond in a meaningful way.
There doesn't seem to be a great deal of interest in pursuing this change, so I'm close it out as wontfix. Thank you for the suggestion.
Initial attempt to add class