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

Built from https://develop.svn.wordpress.org/trunk@27948


git-svn-id: http://core.svn.wordpress.org/trunk@27778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-04-04 18:01:17 +00:00
parent 27c422364c
commit b41e23efac
2 changed files with 2 additions and 2 deletions

View File

@ -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 ) {

File diff suppressed because one or more lines are too long