Changeset 22672
- Timestamp:
- 11/19/2012 07:30:53 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/media-upload.js
r22665 r22672 357 357 return; 358 358 359 this.insert( selection.map( function( attachment ) {359 selection.each( function( attachment ) { 360 360 var detail = details[ attachment.cid ]; 361 361 … … 367 367 368 368 if ( 'image' === attachment.get('type') ) 369 return wp.media.string.image( attachment, detail ) + ' ';369 this.insert( wp.media.string.image( attachment, detail ) + ' ' ); 370 370 else 371 return wp.media.string.link( attachment, detail ) + ' ';372 } ).join(''));371 this.insert( wp.media.string.link( attachment, detail ) + ' ' ); 372 }, this ); 373 373 }, this ); 374 374
Note: See TracChangeset
for help on using the changeset viewer.