diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 87aa052171..354fc3f08a 100644
|
a
|
b
|
function wp_print_media_templates() { |
| 538 | 538 | <div class="thumbnail"> |
| 539 | 539 | <# if ( data.uploading ) { #> |
| 540 | 540 | <div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div> |
| 541 | | <# } else if ( 'image' === data.type && data.sizes ) { #> |
| | 541 | <# } else if ( 'image' === data.type && data.size ) { #> |
| 542 | 542 | <div class="centered"> |
| 543 | 543 | <img src="{{ data.size.url }}" draggable="false" alt="" /> |
| 544 | 544 | </div> |
| … |
… |
function wp_print_media_templates() { |
| 600 | 600 | <div class="thumbnail thumbnail-{{ data.type }}"> |
| 601 | 601 | <# if ( data.uploading ) { #> |
| 602 | 602 | <div class="media-progress-bar"><div></div></div> |
| 603 | | <# } else if ( 'image' === data.type && data.sizes ) { #> |
| | 603 | <# } else if ( 'image' === data.type && data.size ) { #> |
| 604 | 604 | <img src="{{ data.size.url }}" draggable="false" alt="" /> |
| 605 | 605 | <# } else { #> |
| 606 | 606 | <img src="{{ data.icon }}" class="icon" draggable="false" alt="" /> |
diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
index b5843e6af8..82da594b38 100644
|
a
|
b
|
function gallery_shortcode( $attr ) { |
| 2095 | 2095 | function wp_underscore_playlist_templates() { |
| 2096 | 2096 | ?> |
| 2097 | 2097 | <script type="text/html" id="tmpl-wp-playlist-current-item"> |
| 2098 | | <# if ( data.image ) { #> |
| | 2098 | <# if ( data.thumb ) { #> |
| 2099 | 2099 | <img src="{{ data.thumb.src }}" alt="" /> |
| 2100 | 2100 | <# } #> |
| 2101 | 2101 | <div class="wp-playlist-caption"> |