Make WordPress Core


Ignore:
Timestamp:
07/11/2014 05:21:04 AM (11 years ago)
Author:
wonderboymusic
Message:

Media Grid:

  • The "Edit Image" link in the attachment modal details is redundant.
  • After an attachment is deleted in the modal, automatically move to the next attachment in the library. If there are no attachments left, close the modal.

See #24716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r29082 r29085  
    290290                    <# if ( data.width && data.height ) { #>
    291291                        <div class="dimensions">{{ data.width }} &times; {{ data.height }}</div>
    292                     <# } #>
    293 
    294                     <# if ( data.can.save ) { #>
    295                         <a class="edit-attachment" href="{{ data.editLink }}&amp;image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a>
    296                         <a class="refresh-attachment" href="#"><?php _e( 'Refresh' ); ?></a>
    297292                    <# } #>
    298293                <# } #>
Note: See TracChangeset for help on using the changeset viewer.