Changeset 29528
- Timestamp:
- 08/18/2014 02:34:03 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media-template.php
r29496 r29528 277 277 <# if ( data.uploading ) { #> 278 278 <div class="media-progress-bar"><div></div></div> 279 <# } else if ( 'image' === data.type ) { #>279 <# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #> 280 280 <img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" /> 281 281 <# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #> … … 311 311 312 312 <div class="attachment-actions"> 313 <# if ( 'image' === data.type && ! data.uploading ) { #>313 <# if ( 'image' === data.type && ! data.uploading && data.sizes ) { #> 314 314 <a class="button edit-attachment" href="#"><?php _e( 'Edit Image' ); ?></a> 315 315 <# } #> … … 426 426 <# if ( data.uploading ) { #> 427 427 <div class="media-progress-bar"><div> 428 <# } else if ( 'image' === data.type ) { #>428 <# } else if ( 'image' === data.type && data.sizes ) { #> 429 429 <div class="centered"> 430 430 <img src="{{ data.size.url }}" draggable="false" alt="" /> … … 482 482 <# if ( data.uploading ) { #> 483 483 <div class="media-progress-bar"><div></div></div> 484 <# } else if ( 'image' === data.type ) { #>484 <# } else if ( 'image' === data.type && data.sizes ) { #> 485 485 <img src="{{ data.size.url }}" draggable="false" /> 486 486 <# } else { #>
Note: See TracChangeset
for help on using the changeset viewer.