Skip to content
WordPress.org
News
Download & Extend
Get WordPress
Themes
Patterns
Plugins
Mobile
Hosting
Openverse ↗︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv ↗︎
Community
Make WordPress
Photo Directory
Five for the Future
WordCamp ↗︎
Meetups ↗︎
Job Board ↗︎
About
About WordPress
Showcase
Enterprise
Gutenberg ↗︎
WordPress Swag Store ↗︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #25791
Ticket #25791
: nesting-class-patch.php
File nesting-class-patch.php,
159 bytes
(added by
jhned
,
10 years ago
)
Nesting Class Patch for class-wp-posts-list-table.php
Line
1
if ( $post->post_parent ) {
2
$count = count( get_post_ancestors($post->ID) );
3
$classes .= ' level-'. $count;
4
} else {
5
$classes .= ' level-0';
6
}
Trac UI Preferences
Download in other formats:
Original Format