diff --git src/wp-includes/js/media-editor.js src/wp-includes/js/media-editor.js
index 5bf5bd3..870439c 100644
|
|
|
|
| 55 | 55 | fallbacks = function( props ) { |
| 56 | 56 | // Generate alt fallbacks and strip tags. |
| 57 | 57 | if ( 'image' === props.type && ! props.alt ) { |
| 58 | | props.alt = props.caption || props.title || ''; |
| | 58 | if ( props.caption ) { |
| | 59 | props.alt = props.caption; |
| | 60 | } else if ( props.title !== props.url ) { |
| | 61 | props.alt = props.title; |
| | 62 | } else { |
| | 63 | props.alt = ''; |
| | 64 | } |
| | 65 | |
| 59 | 66 | props.alt = props.alt.replace( /<\/?[^>]+>/g, '' ); |
| 60 | 67 | props.alt = props.alt.replace( /[\r\n]+/g, ' ' ); |
| 61 | 68 | } |
| … |
… |
|
| 894 | 901 | title: embed.url, |
| 895 | 902 | linkUrl: '', |
| 896 | 903 | align: 'none', |
| 897 | | link: 'none' |
| | 904 | link: 'none', |
| | 905 | type: 'image' |
| 898 | 906 | }); |
| 899 | 907 | |
| 900 | 908 | if ( 'none' === embed.link ) { |