WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/19/2014 09:15:50 PM (6 years ago)
Author:
nacin
Message:

Only enqueue the image editor in the media modal in the admin.

props gcorne.
see #21811.

File:
1 edited

Legend:

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

    r27620 r27625  
    667667                    <img src="{{ data.model.url }}" draggable="false" />
    668668                </div>
    669                 <# if ( data.attachment ) { #>
     669                <# if ( data.attachment && window.imageEdit ) { #>
    670670                    <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Image' ); ?>" />
    671671                <# } #>
Note: See TracChangeset for help on using the changeset viewer.