Make WordPress Core

Ticket #48325: 48325.6.patch

File 48325.6.patch, 1.1 KB (added by Mista-Flo, 3 years ago)
  • src/wp-includes/media-template.php

    diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
    index 0a07b5619f..107799f569 100644
    a b function wp_print_media_templates() { 
    511511                        </div>
    512512
    513513                        <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                                        <span class="links-separator">|</span>
     517                                <# } #>
     518                                <# if ( data.can.save ) { #>
    516519                                        <a href="{{ data.editLink }}"><?php _e( 'Edit more details' ); ?></a>
     520                                        <span class="links-separator">|</span>
    517521                                <# } #>
    518                                 <# if ( ! data.uploading && data.can.remove ) { #> |
     522                                <# if ( ! data.uploading && data.can.remove ) { #>
    519523                                        <?php if ( MEDIA_TRASH ) : ?>
    520524                                                <# if ( 'trash' === data.status ) { #>
    521525                                                        <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from Trash' ); ?></button>