Make WordPress Core

Ticket #29596: media-template.php.patch

File media-template.php.patch, 1018 bytes (added by skaeser, 10 years ago)

Patch for media-template.php

  • media-template.php

    old new  
    312312                                <# } #>
    313313
    314314                                <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 ) { #>
    316316                                                <a class="button edit-attachment" href="#"><?php _e( 'Edit Image' ); ?></a>
    317317                                        <# } #>
    318318                                </div>
     
    408408                        </div>
    409409
    410410                        <div class="actions">
    411                                 <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> |
     411                                <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a>
     412                                <# if ( data.can.save ) { #> |
    412413                                <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a>
     414                                <# } #>
    413415                                <# if ( ! data.uploading && data.can.remove ) { #> |
    414416                                                <?php if ( MEDIA_TRASH ): ?>
    415417                                                <# if ( 'trash' === data.status ) { #>