Ticket #22524: 22524.patch
File 22524.patch, 1.1 KB (added by , 12 years ago) |
---|
-
wp-includes/media.php
1265 1265 'subtype' => $subtype, 1266 1266 'icon' => wp_mime_type_icon( $attachment->ID ), 1267 1267 'dateFormatted' => mysql2date( get_option('date_format'), $attachment->post_date ), 1268 'deleteLink' => wp_nonce_url( "post.php?action=delete&post=$attachment->ID", 'delete-post_' . $attachment->ID ), 1269 'editLink' => get_edit_post_link( $attachment->ID, true ), 1268 1270 ); 1269 1271 1270 1272 if ( $meta && 'image' === $type ) { … … 1501 1503 <# if ( 'image' === data.type && ! data.uploading ) { #> 1502 1504 <div class="dimensions">{{ data.width }} × {{ data.height }}</div> 1503 1505 <# } #> 1506 <div class="edit-link"> 1507 <a href="{{ data.editLink }}" target="_blank"><?php _e( 'Edit' ) ?></a> 1508 </div> 1509 <div class="delete-link"> 1510 <a href="{{ data.deleteLink }}" onclick="return showNotice.warn();"><?php _e( 'Delete Permanently' ) ?></a> 1511 </div> 1504 1512 </div> 1505 1513 <div class="compat-meta"> 1506 1514 <# if ( data.compat && data.compat.meta ) { #>