WordPress.org

Make WordPress Core

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

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

     
    1616add_filter('the_title','wp_specialchars'); 
    1717$class = ('alternate' == $class) ? '' : 'alternate'; 
    1818?> 
    19         <tr id='post-<?php echo $id; ?>' class='<?php echo $class; ?>'> 
     19        <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $class . ' status-' . $post->post_status ); ?>'> 
    2020 
    2121<?php 
    2222