Changes from tags/3.5/wp-includes/js/media-editor.js at r50432 to tags/3.5.1/wp-includes/js/media-editor.js at r50432
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/3.5.1/wp-includes/js/media-editor.js
r50432 r50432 10 10 // attachment's type. 11 11 props: function( props, attachment ) { 12 var link, linkUrl, size, sizes, fallbacks; 12 var link, linkUrl, size, sizes, fallbacks, 13 defaultProps = wp.media.view.settings.defaultProps; 13 14 14 15 // Final fallbacks run after all processing has been completed. … … 18 19 props.alt = props.caption || props.title || ''; 19 20 props.alt = props.alt.replace( /<\/?[^>]+>/g, '' ); 21 props.alt = props.alt.replace( /[\r\n]+/g, ' ' ); 20 22 } 21 23 … … 30 32 if ( 'image' === props.type ) { 31 33 props = _.defaults( props || {}, { 32 align: getUserSetting( 'align', 'none' ),33 size: getUserSetting( 'imgsize', 'medium' ),34 align: defaultProps.align || getUserSetting( 'align', 'none' ), 35 size: defaultProps.size || getUserSetting( 'imgsize', 'medium' ), 34 36 url: '', 35 37 classes: [] … … 43 45 props.title = props.title || attachment.title; 44 46 45 link = props.link || getUserSetting( 'urlbutton', 'post' );47 link = props.link || defaultProps.link || getUserSetting( 'urlbutton', 'file' ); 46 48 if ( 'file' === link ) 47 49 linkUrl = attachment.url; … … 168 170 icontag: 'dt', 169 171 captiontag: 'dd', 170 columns: 3,172 columns: '3', 171 173 size: 'thumbnail', 172 174 orderby: 'menu_order ID'
Note: See TracChangeset
for help on using the changeset viewer.