Ticket #26959: 26959-ensure-thumb-in-template.diff
File 26959-ensure-thumb-in-template.diff, 847 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/media-template.php
912 912 <# _.each( data.attachments, function( attachment, index ) { #> 913 913 <dl class="gallery-item"> 914 914 <dt class="gallery-icon"> 915 <?php // TODO: need to figure out the best way to make sure that we have thumbnails ?> 916 <img src="{{{ attachment.sizes.thumbnail.url }}}" /> 915 <# if ( 'undefined' !== typeof attachment.sizes.thumbnail ) { #> 916 <img src="{{{ attachment.sizes.thumbnail.url }}}" /> 917 <# } else { #> 918 <img src="{{{ attachment.sizes.full.url }}}" /> 919 <# } #> 917 920 </dt> 918 921 <dd class="wp-caption-text gallery-caption"> 919 922 {{ attachment.caption }}