From 0b3ba1e405fd1b03bfb716be968e65cb29db456e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 4 Sep 2014 14:38:16 +0000 Subject: [PATCH] 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 --- wp-includes/media-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index ef27297d7c..afb690e89f 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -276,6 +276,8 @@ function wp_print_media_templates() {
<# if ( data.uploading ) { #>
+ <# } else if ( 'image' === data.type && data.sizes && data.sizes.large ) { #> + <# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #> <# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #>