Changeset 11204 for trunk/wp-admin/edit-attachment-rows.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r11190 r11204 63 63 ?> 64 64 65 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>">65 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"> 66 66 <?php echo $thumb; ?> 67 67 </a> … … 75 75 case 'media': 76 76 ?> 77 <td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />77 <td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 78 78 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 79 79 <p> … … 84 84 if ( current_user_can('delete_post', $post->ID) ) 85 85 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>"; 86 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';86 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 87 87 $action_count = count($actions); 88 88 $i = 0; … … 183 183 ?> 184 184 <td <?php echo $attributes ?>> 185 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php _e('Edit'); ?></a> |185 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php _e('Edit'); ?></a> | 186 186 <a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a> 187 187 </td>
Note: See TracChangeset
for help on using the changeset viewer.