diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 016a726b74..7281fd4a70 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -491,6 +491,13 @@ class WP_Posts_List_Table extends WP_List_Table { $classes .= ' wp-locked'; $lock_holder = get_userdata( $lock_holder ); } + + if ( false && $post->post_parent ) { + $count = count( get_post_ancestors( $post->ID ) ); + $classes .= ' level-'. $count; + } else { + $classes .= ' level-0'; + } ?>