Make WordPress Core

Ticket #27366: 27366-13.patch

File 27366-13.patch, 448 bytes (added by gcorne, 11 years ago)
  • src/wp-includes/js/media-models.js

    diff --git src/wp-includes/js/media-models.js src/wp-includes/js/media-models.js
    index 21b42b4..53eefdf 100644
    window.wp = window.wp || {}; 
    472472                setAspectRatio: function() {
    473473                        var full;
    474474
    475                         if ( this.attachment ) {
     475                        if ( this.attachment && this.attachment.get( 'sizes' ) ) {
    476476                                full = this.attachment.get( 'sizes' ).full;
    477477
    478478                                if ( full ) {