Changeset 29723
- Timestamp:
- 09/09/2014 09:49:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media-template.php
r29721 r29723 313 313 314 314 <div class="attachment-actions"> 315 <# if ( 'image' === data.type && ! data.uploading && data.sizes ) { #>315 <# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #> 316 316 <a class="button edit-attachment" href="#"><?php _e( 'Edit Image' ); ?></a> 317 317 <# } #> … … 409 409 410 410 <div class="actions"> 411 <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> | 412 <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a> 411 <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> 412 <# if ( data.can.save ) { #> | 413 <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a> 414 <# } #> 413 415 <# if ( ! data.uploading && data.can.remove ) { #> | 414 416 <?php if ( MEDIA_TRASH ): ?> 415 417 <# if ( 'trash' === data.status ) { #> 416 418 <a class="untrash-attachment" href="#"><?php _e( 'Untrash' ); ?></a> … … 418 420 <a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a> 419 421 <# } #> 420 421 422 423 422 <?php else: ?> 423 <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a> 424 <?php endif; ?> 425 <# } #> 424 426 </div> 425 427
Note: See TracChangeset
for help on using the changeset viewer.