Make WordPress Core


Ignore:
Timestamp:
09/07/2012 09:27:07 PM (13 years ago)
Author:
koopersmith
Message:

Use icons for non-image attachments in the new media modal. see #21836, #21390, #21808.

File:
1 edited

Legend:

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

    r21778 r21784  
    15771577        'type'        => $type,
    15781578        'subtype'     => $subtype,
     1579        'icon'        => wp_mime_type_icon( $attachment->post_mime_type ),
    15791580    );
    15801581
     
    16471648
    16481649    <script type="text/html" id="tmpl-attachment">
    1649         <div class="attachment-thumbnail <%- orientation %>">
     1650        <div class="attachment-thumbnail type-<%- type %> subtype-<%- subtype %> <%- orientation %>">
    16501651            <% if ( thumbnail ) { %>
    16511652                <img src="<%- thumbnail %>" />
Note: See TracChangeset for help on using the changeset viewer.