Make WordPress Core


Ignore:
Timestamp:
07/04/2014 04:59:01 AM (11 years ago)
Author:
wonderboymusic
Message:

Media Grid: for audio and video files with covers, show that instead of the icon. The filename is still present with the extension to identify the type.

See #24716.

File:
1 edited

Legend:

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

    r28995 r28996  
    404404                if ( data.thumb && data.thumb.src && data.thumb.src !== data.icon ) {
    405405                #><img src="{{ data.thumb.src }}" class="thumbnail" draggable="false" /><#
     406                } else {
     407                #><img src="{{ data.icon }}" class="icon" draggable="false" /><#
    406408                } #>
    407                 <img src="{{ data.icon }}" class="icon" draggable="false" />
    408409                <div class="filename">
    409410                    <div>{{ data.filename }}</div>
Note: See TracChangeset for help on using the changeset viewer.