Update date display in Manage Posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@6933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b9c63b6f11
commit
0012d2b36f
|
@ -372,27 +372,30 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'modified':
|
case 'modified':
|
||||||
?>
|
|
||||||
<td><?php if ( '0000-00-00 00:00:00' ==$page->post_modified ) _e('Never'); else the_modified_time(__('Y/m/d \<\b\r \/\> g:i:s a')); ?></td>
|
|
||||||
<?php
|
|
||||||
break;
|
|
||||||
case 'date':
|
case 'date':
|
||||||
?>
|
if ( '0000-00-00 00:00:00' == $page->post_date && 'date' == $column_name ) {
|
||||||
<td><a href="<?php the_permalink(); ?>" rel="permalink">
|
$t_time = $h_time = __('Unpublished');
|
||||||
<?php
|
|
||||||
if ( '0000-00-00 00:00:00' ==$page->post_date ) {
|
|
||||||
_e('Unpublished');
|
|
||||||
} else {
|
} else {
|
||||||
if ( ( abs(time() - get_post_time()) ) < 86400 ) {
|
if ( 'modified' == $column_name ) {
|
||||||
if ( ( 'future' == $page->post_status) )
|
$t_time = get_the_modified_time(__('Y/m/d g:i:s A'));
|
||||||
echo sprintf( __('%s from now'), human_time_diff( get_post_time() ) );
|
$m_time = $page->post_modified;
|
||||||
else
|
$time = get_post_modified_time();
|
||||||
echo sprintf( __('%s ago'), human_time_diff( get_post_time() ) );
|
|
||||||
} else {
|
} else {
|
||||||
the_time(__('Y/m/d'));
|
$t_time = get_the_time(__('Y/m/d g:i:s A'));
|
||||||
|
$m_time = $page->post_date;
|
||||||
|
$time = get_post_time();
|
||||||
|
}
|
||||||
|
if ( ( abs(time() - $time) ) < 86400 ) {
|
||||||
|
if ( ( 'future' == $page->post_status) )
|
||||||
|
$h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
|
||||||
|
else
|
||||||
|
$h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
|
||||||
|
} else {
|
||||||
|
$h_time = mysql2date(__('Y/m/d'), $m_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?></a></td>
|
?>
|
||||||
|
<td><a href="<?php the_permalink(); ?>" rel="permalink" title="<?php echo $t_time ?>"><?php echo $h_time ?></a></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'title':
|
case 'title':
|
||||||
|
|
Loading…
Reference in New Issue