Show Published/Last Modified in date column

git-svn-id: https://develop.svn.wordpress.org/trunk@9167 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-14 16:56:32 +00:00
parent dd2144b163
commit c2f12f7ab9
1 changed files with 13 additions and 4 deletions

View File

@ -1249,7 +1249,11 @@ function _post_row($a_post, $pending_comments, $mode) {
echo apply_filters('post_date_column_time', $t_time, $post, $column_name, $mode);
else
echo '<abbr title="' . $t_time . '">' . apply_filters('post_date_column_time', $h_time, $post, $column_name, $mode) . '</abbr>';
echo '<br />';
if ( 'publish' == $post->post_status || 'future' == $post->post_status )
_e('Published');
else
_e('Last Modified');
echo '</td>';
break;
@ -1431,9 +1435,14 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
$h_time = mysql2date(__('Y/m/d'), $m_time);
}
}
?>
<td <?php echo $attributes ?>><abbr title="<?php echo $t_time ?>"><?php echo $h_time ?></abbr></td>
<?php
echo '<td ' . $attributes . '>';
echo '<abbr title="' . $t_time . '">' . apply_filters('post_date_column_time', $h_time, $page, $column_name, $mode) . '</abbr>';
echo '<br />';
if ( 'publish' == $page->post_status || 'future' == $page->post_status )
_e('Published');
else
_e('Last Modified');
echo '</td>';
break;
case 'title':
$attributes = 'class="post-title page-title column-title"' . $style;