Changeset 27536
- Timestamp:
- 03/14/2014 12:59:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-models.js
r27530 r27536 468 468 this.extension = attachment.get('filename' ).split('.').pop(); 469 469 470 if ( this.get( 'src' ) && this.extension === this.get( 'src' ).split('.').pop() ) { 471 this.unset( 'src' ); 472 } 473 470 474 if ( _.contains( wp.media.view.settings.embedExts, this.extension ) ) { 471 475 this.set( this.extension, this.attachment.get( 'url' ) ); … … 480 484 this.setSource( attachment ); 481 485 486 this.unset( 'src' ); 482 487 _.each( _.without( wp.media.view.settings.embedExts, this.extension ), function (ext) { 483 488 self.unset( ext );
Note: See TracChangeset
for help on using the changeset viewer.