Make WordPress Core

Changeset 29416


Ignore:
Timestamp:
08/06/2014 07:32:51 PM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: after [28996], use the same cover size for audio/video files that images use for thumbnails.

See #24716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r29376 r29416  
    424424                <# } else { #>
    425425                    <div class="centered">
    426                         <# if ( data.thumb && data.thumb.src && data.thumb.src !== data.icon ) { #>
    427                             <img src="{{ data.thumb.src }}" class="thumbnail" draggable="false" />
     426                        <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
     427                            <img src="{{ data.image.src }}" class="thumbnail" draggable="false" />
    428428                        <# } else { #>
    429429                            <img src="{{ data.icon }}" class="icon" draggable="false" />
Note: See TracChangeset for help on using the changeset viewer.