Changeset 22773
- Timestamp:
- 11/21/2012 04:50:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-editor.js
r22772 r22773 50 50 (function($){ 51 51 // Stores the editors' `wp.media.controller.Frame` instances. 52 var workflows = {}, 53 linkToUrl; 54 55 linkToUrl = function( props, attachment ) { 56 var link = props.link || getUserSetting( 'urlbutton', 'post' ), 57 url; 58 59 if ( 'file' === link ) 60 url = attachment.url; 61 else if ( 'post' === link ) 62 url = attachment.link; 63 else if ( 'custom' === link ) 64 url = props.linkUrl; 65 66 return url || ''; 67 }; 52 var workflows = {}; 68 53 69 54 wp.media.string = {
Note: See TracChangeset
for help on using the changeset viewer.