diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 0a07b5619f..208678bc69 100644
a
|
b
|
function wp_print_media_templates() { |
511 | 511 | </div> |
512 | 512 | |
513 | 513 | <div class="actions"> |
514 | | <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> |
515 | | <# if ( data.can.save ) { #> | |
| 514 | <# if ( data.link ) { #> |
| 515 | <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> |
| 516 | <# } #> |
| 517 | <# if ( data.can.save ) { #> |
| 518 | <# if ( data.link ) { #> |
| 519 | <span class="links-separator">|</span> |
| 520 | <# } #> |
516 | 521 | <a href="{{ data.editLink }}"><?php _e( 'Edit more details' ); ?></a> |
517 | 522 | <# } #> |
518 | | <# if ( ! data.uploading && data.can.remove ) { #> | |
| 523 | <# if ( ! data.uploading && data.can.remove ) { #> |
| 524 | <# if ( data.link || data.can.save ) { #> |
| 525 | <span class="links-separator">|</span> |
| 526 | <# } #> |
519 | 527 | <?php if ( MEDIA_TRASH ) : ?> |
520 | 528 | <# if ( 'trash' === data.status ) { #> |
521 | 529 | <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from Trash' ); ?></button> |