Media grid details: Load large images instead of originals, if available.
fixes #29498. Built from https://develop.svn.wordpress.org/trunk@29704 git-svn-id: http://core.svn.wordpress.org/trunk@29478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
00fac0639d
commit
0b3ba1e405
|
@ -276,6 +276,8 @@ function wp_print_media_templates() {
|
|||
<div class="thumbnail thumbnail-{{ data.type }}">
|
||||
<# if ( data.uploading ) { #>
|
||||
<div class="media-progress-bar"><div></div></div>
|
||||
<# } else if ( 'image' === data.type && data.sizes && data.sizes.large ) { #>
|
||||
<img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" />
|
||||
<# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #>
|
||||
<img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" />
|
||||
<# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #>
|
||||
|
|
Loading…
Reference in New Issue