Opened 13 years ago
Closed 11 years ago
#27345 closed enhancement (wontfix)
Add class to posts list table row if page has children
| Reported by: | bravokeyl | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | administration |
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
@
11 years ago
- Milestone Awaiting Review
- Resolution → wontfix
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Initial attempt to add class