Changeset 27918 for trunk/src/wp-includes/js/media-models.js
- Timestamp:
- 04/03/2014 03:20:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-models.js
r27687 r27918 370 370 371 371 this.setLinkTypeFromUrl(); 372 373 this.set( 'aspectRatio', attributes.customWidth / attributes.customHeight ); 374 this.set( 'originalUrl', attributes.url ); 372 375 }, 373 376 … … 445 448 446 449 if ( ! this.attachment ) { 450 return; 451 } 452 453 if ( this.get( 'size' ) === 'custom' ) { 454 this.set( 'width', this.get( 'customWidth' ) ); 455 this.set( 'height', this.get( 'customHeight' ) ); 456 this.set( 'url', this.get( 'originalUrl' ) ); 447 457 return; 448 458 }
Note: See TracChangeset
for help on using the changeset viewer.