WordPress.org
Showcase
Plugins
Themes
Hosting
News
Resources
Learn WordPress
Documentation
Education
Forums
Developers
Blocks
Patterns
Photos
Openverse
↗
︎
WordPress.tv
↗
︎
About
About WordPress
Make WordPress
Events
Five for the Future
Enterprise
Gutenberg
↗
︎
Job Board
↗
︎
Swag
↗
︎
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
,
13 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
}
Download in other formats:
Original Format