Ticket #23176: 23176.2.diff
File 23176.2.diff, 474 bytes (added by , 12 years ago) |
---|
-
wp-includes/js/media-editor.js
18 18 if ( 'image' === props.type && ! props.alt ) { 19 19 props.alt = props.caption || props.title || ''; 20 20 props.alt = props.alt.replace( /<\/?[^>]+>/g, '' ); 21 props.alt = props.alt.replace( /[\r\n]+/g, ' ' ); 21 22 } 22 23 23 24 return props;