Ticket #6839: 6839.diff
File 6839.diff, 1.2 KB (added by , 16 years ago) |
---|
-
wp-admin/edit-attachment-rows.php
26 26 $class = 'alternate' == $class ? '' : 'alternate'; 27 27 global $current_user; 28 28 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); 29 $att_title = get_the_title(); 30 if ( empty($att_title) ) 31 $att_title = __('(no title)'); 32 29 33 ?> 30 34 <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $class . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top"> 31 35 … … 50 54 51 55 case 'media': 52 56 ?> 53 <td><strong><a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), get_the_title())); ?>"><?php the_title(); ?></a></strong><br />57 <td><strong><a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 54 58 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 55 59 <?php do_action('manage_media_media_column', $post->ID); ?> 56 60 </td>