Ticket #35153: 35153-3.diff
File 35153-3.diff, 858 bytes (added by , 5 years ago) |
---|
-
media-views.js
1196 1196 * @param {wp.media.model.Attachment} attachment 1197 1197 * @returns {Backbone.Model} 1198 1198 */ 1199 display: function( attachment ) { 1199 display: function( attachment ) { 1200 1201 /* 1202 * Attachments whos mime types != 'image/*' set 'Link To' param 'Attachment Page' 1203 * See Core Trac Ticket #35153: https://core.trac.wordpress.org/ticket/35153 1204 */ 1205 if( attachment.attributes.mime.indexOf( 'image/' ) == -1 ) { 1206 this._defaultDisplaySettings = { 1207 link: 'file' 1208 }; 1209 } 1210 1200 1211 var displays = this._displays; 1201 1212 1202 1213 if ( ! displays[ attachment.cid ] ) { … … 8490 8501 8491 8502 module.exports = View; 8492 8503 8493 },{}]},{},[19]); 8504 },{}]},{},[19]); 8505 No newline at end of file