Ticket #5817: r6787__readable_time.diff
File r6787__readable_time.diff, 810 bytes (added by , 17 years ago) |
---|
-
wp-admin/edit-post-rows.php
48 48 _e('Unpublished'); 49 49 } else { 50 50 if ( ( time() - get_post_time() ) < 86400 ) 51 echo sprintf( __('%s ago'), human_time_diff( get_post_time() ) ); 52 else 51 if ( ( 'publish' ==$post->post_status) ) { // checks to see if post has already published. If true post has a past tense, return is %s ago 52 echo sprintf( __('%s ago'), human_time_diff( get_post_time() ) ); 53 } else { // otherwise post happens in future, return if %s from now 54 echo sprintf( __('%s from now'), human_time_diff( get_post_time() ) ); 55 } else 53 56 the_time(__('Y/m/d')); 54 57 } 55 58 ?></a></td>