Ticket #31973: wordpress-svg.patch
File wordpress-svg.patch, 2.1 KB (added by , 10 years ago) |
---|
-
functions.php
2181 2181 'bmp' => 'image/bmp', 2182 2182 'tiff|tif' => 'image/tiff', 2183 2183 'ico' => 'image/x-icon', 2184 'svg' => 'image/svg+xml', 2184 2185 // Video formats. 2185 2186 'asf|asx' => 'video/x-ms-asf', 2186 2187 'wmv' => 'video/x-ms-wmv', -
media-template.php
294 294 <div class="media-progress-bar"><div></div></div> 295 295 <# } else if ( 'image' === data.type && data.sizes && data.sizes.large ) { #> 296 296 <img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" /> 297 <# } else if ( 'svg+xml' === data.subtype ) { #> 298 <img class="details-image" src="{{ data.url }}" draggable="false" /> 297 299 <# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #> 298 300 <img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" /> 299 301 <# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #> … … 449 451 <div class="thumbnail"> 450 452 <# if ( data.uploading ) { #> 451 453 <div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div> 454 <# } else if ( 'svg+xml' === data.subtype ) { #> 455 <div class="centered"> 456 <img src="{{ data.url }}" class="thumbnail" draggable="false" /> 457 </div> 452 458 <# } else if ( 'image' === data.type && data.sizes ) { #> 453 459 <div class="centered"> 454 460 <img src="{{ data.size.url }}" draggable="false" alt="" /> … … 505 511 <div class="thumbnail thumbnail-{{ data.type }}"> 506 512 <# if ( data.uploading ) { #> 507 513 <div class="media-progress-bar"><div></div></div> 514 <# } else if ( 'svg+xml' === data.subtype ) { #> 515 <div class="centered"> 516 <img src="{{ data.url }}" class="thumbnail" draggable="false" /> 517 </div> 508 518 <# } else if ( 'image' === data.type && data.sizes ) { #> 509 519 <img src="{{ data.size.url }}" draggable="false" /> 510 520 <# } else { #>