Ticket #18531: 18531.like-posts.patch
File 18531.like-posts.patch, 1.2 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/class-wp-media-list-table.php
279 279 } else { 280 280 $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) ); 281 281 $m_time = $post->post_date; 282 $time = get_post_time( 'G', true, $post , false);283 if ( ( abs( $t_diff = time() - $time ) ) < 86400 ) { 284 if ( $t_diff < 0 )285 $h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) ); 286 else287 288 } else {282 $time = get_post_time( 'G', true, $post ); 283 284 $time_diff = time() - $time; 285 286 if ( $time_diff > 0 && $time_diff < 24*60*60 ) 287 $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); 288 else 289 289 $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); 290 }291 290 } 292 ?> 293 <td <?php echo $attributes ?>><?php echo $h_time ?></td> 294 <?php 291 292 echo '<td ' . $attributes . '>'; 293 echo '<abbr title="' . $t_time . '">' . apply_filters( 'attachment_date_column_time', $h_time, $post, $column_name ) . '</abbr>'; 294 echo '</td>'; 295 295 296 break; 296 297 297 298 case 'parent':