Changeset 22499
- Timestamp:
- 11/09/2012 10:48:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/mce-view.js
r22495 r22499 485 485 }; 486 486 487 // Generate the `href` based on the `link` property. 488 if ( props.link && 'none' !== props.link ) { 489 props.anchor = props.anchor || {}; 490 491 if ( 'post' === props.link ) 492 props.anchor.href = attachment.link; 493 else if ( 'file' === props.link ) 494 props.anchor.href = attachment.url; 495 } 496 487 497 // Generate the `a` element options, if they exist. 488 498 if ( props.anchor ) {
Note: See TracChangeset
for help on using the changeset viewer.