WordPress.org

Make WordPress Core

Ticket #4628: manage-post-status-class-r5797-a.patch

File manage-post-status-class-r5797-a.patch, 669 bytes (added by tellyworth, 11 years ago)
  • wp-admin/edit-post-rows.php

     
    1515while (have_posts()) : the_post();
    1616add_filter('the_title','wp_specialchars');
    1717$class = ('alternate' == $class) ? '' : 'alternate';
     18global $current_user;
     19$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
    1820?>
    19         <tr id='post-<?php echo $id; ?>' class='<?php echo $class; ?>'>
     21        <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $class . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>'>
    2022
    2123<?php
    2224