Make WordPress Core

Changeset 29529


Ignore:
Timestamp:
08/18/2014 02:41:46 AM (10 years ago)
Author:
wonderboymusic
Message:

Media Modal: don't show the "Edit Image" button for attachments that don't have data.sizes set.

Fixes #28038.

File:
1 edited

Legend:

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

    r29528 r29529  
    498498                    <# } #>
    499499
    500                     <# if ( data.can.save ) { #>
     500                    <# if ( data.can.save && data.sizes ) { #>
    501501                        <a class="edit-attachment" href="{{ data.editLink }}&amp;image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a>
    502502                        <a class="refresh-attachment" href="#"><?php _e( 'Refresh' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.