diff --git a/src/wp-includes/js/media-models.js b/src/wp-includes/js/media-models.js index 21b42b4e01..53eefdfe15 100644 --- a/src/wp-includes/js/media-models.js +++ b/src/wp-includes/js/media-models.js @@ -472,7 +472,7 @@ window.wp = window.wp || {}; setAspectRatio: function() { var full; - if ( this.attachment ) { + if ( this.attachment && this.attachment.get( 'sizes' ) ) { full = this.attachment.get( 'sizes' ).full; if ( full ) {