Make WordPress Core

Changeset 26244


Ignore:
Timestamp:
11/17/2013 08:39:48 PM (11 years ago)
Author:
nacin
Message:

Add level-X classes to the posts list table rows.

props jhned.
fixes #25791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r25868 r26244  
    491491            $classes .= ' wp-locked';
    492492            $lock_holder = get_userdata( $lock_holder );
     493        }
     494
     495        if ( false && $post->post_parent ) {
     496            $count = count( get_post_ancestors( $post->ID ) );
     497            $classes .= ' level-'. $count;
     498        } else {
     499            $classes .= ' level-0';
    493500        }
    494501    ?>
Note: See TracChangeset for help on using the changeset viewer.