Make WordPress Core

Changeset 27948


Ignore:
Timestamp:
04/04/2014 06:00:04 PM (11 years ago)
Author:
azaozz
Message:

Edit image modal: check if full size exists before trying to use it for setting aspect ratio, props gcorne, see #27366

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-models.js

    r27942 r27948  
    473473            var full;
    474474
    475             if ( this.attachment ) {
     475            if ( this.attachment && this.attachment.get( 'sizes' ) ) {
    476476                full = this.attachment.get( 'sizes' ).full;
    477477
Note: See TracChangeset for help on using the changeset viewer.