Changeset 6988 for trunk/wp-admin/edit-attachment-rows.php
- Timestamp:
- 02/22/2008 10:38:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r6980 r6988 67 67 $m_time = $post->post_date; 68 68 $time = get_post_time(); 69 if ( ( abs( time() - $time) ) < 86400 ) {70 if ( 'future' == get_post_status($post->ID))69 if ( ( abs($t_diff = time() - $time) ) < 86400 ) { 70 if ( $t_diff < 0 ) 71 71 $h_time = sprintf( __('%s from now'), human_time_diff( $time ) ); 72 72 else … … 82 82 83 83 case 'parent': 84 $title = get_the_title($post->post_parent); 85 if ( empty($title) ) 86 $title = __('(no title)'); 84 if ( $post_parent = get_post($post->post_parent) ) { 85 $title = get_the_title($post->post_parent); 86 if ( empty($title) ) 87 $title = __('(no title)'); 88 } else { 89 $title = ''; 90 } 87 91 ?> 88 92 <td><strong><a href="post.php?action=edit&post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td>
Note: See TracChangeset
for help on using the changeset viewer.