Ticket #4628: manage-post-status-class-r5797-a.patch
| File manage-post-status-class-r5797-a.patch, 669 bytes (added by tellyworth, 6 years ago) |
|---|
-
wp-admin/edit-post-rows.php
15 15 while (have_posts()) : the_post(); 16 16 add_filter('the_title','wp_specialchars'); 17 17 $class = ('alternate' == $class) ? '' : 'alternate'; 18 global $current_user; 19 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); 18 20 ?> 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 ); ?>'> 20 22 21 23 <?php 22 24
