Changeset 23095 for trunk/wp-includes/media.php
- Timestamp:
- 12/06/2012 05:52:19 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23087 r23095 1338 1338 'delete' => false, 1339 1339 ), 1340 'editLink' => false, 1340 1341 ); 1341 1342 1342 if ( current_user_can( 'edit_post', $attachment->ID ) ) 1343 if ( current_user_can( 'edit_post', $attachment->ID ) ) { 1343 1344 $response['nonces']['update'] = wp_create_nonce( 'update-post_' . $attachment->ID ); 1345 $response['editLink'] = get_edit_post_link( $attachment->ID, 'raw' ); 1346 } 1344 1347 1345 1348 if ( current_user_can( 'delete_post', $attachment->ID ) ) … … 1704 1707 <div class="filename">{{ data.filename }}</div> 1705 1708 <div class="uploaded">{{ data.dateFormatted }}</div> 1706 <# if ( 'image' === data.type && ! data.uploading && data.width && data.height ) { #> 1707 <div class="dimensions">{{ data.width }} × {{ data.height }}</div> 1709 1710 <# if ( 'image' === data.type && ! data.uploading ) { #> 1711 <# if ( data.width && data.height ) { #> 1712 <div class="dimensions">{{ data.width }} × {{ data.height }}</div> 1713 <# } #> 1714 1715 <# if ( data.can.save ) { #> 1716 <a class="edit-attachment" href="{{ data.editLink }}&image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a> 1717 <a class="refresh-attachment" href="#"><?php _e( 'Refresh' ); ?></a> 1718 <# } #> 1708 1719 <# } #> 1720 1709 1721 <# if ( ! data.uploading && data.can.remove ) { #> 1710 <div class="delete-attachment"> 1711 <a href="#"><?php _e( 'Delete Permanently' ); ?></a> 1712 </div> 1722 <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a> 1713 1723 <# } #> 1724 1714 1725 <div class="compat-meta"> 1715 1726 <# if ( data.compat && data.compat.meta ) { #>
Note: See TracChangeset
for help on using the changeset viewer.