@@ 429-437 (lines=9) @@ | ||
426 | <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a> |
|
427 | <# } #> |
|
428 | <# if ( ! data.uploading && data.can.remove ) { #> | |
|
429 | <?php if ( MEDIA_TRASH ): ?> |
|
430 | <# if ( 'trash' === data.status ) { #> |
|
431 | <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> |
|
432 | <# } else { #> |
|
433 | <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button> |
|
434 | <# } #> |
|
435 | <?php else: ?> |
|
436 | <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> |
|
437 | <?php endif; ?> |
|
438 | <# } #> |
|
439 | </div> |
|
440 | ||
@@ 530-538 (lines=9) @@ | ||
527 | <# } #> |
|
528 | ||
529 | <# if ( ! data.uploading && data.can.remove ) { #> |
|
530 | <?php if ( MEDIA_TRASH ): ?> |
|
531 | <# if ( 'trash' === data.status ) { #> |
|
532 | <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> |
|
533 | <# } else { #> |
|
534 | <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button> |
|
535 | <# } #> |
|
536 | <?php else: ?> |
|
537 | <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> |
|
538 | <?php endif; ?> |
|
539 | <# } #> |
|
540 | ||
541 | <div class="compat-meta"> |