Make WordPress Core


Ignore:
Timestamp:
10/10/2012 09:55:47 AM (11 years ago)
Author:
koopersmith
Message:

Show filenames for non-image attachments in the new media modal.

Also passes all attachment model attributes to the attachment view template by default (instead of selecting specific values).

see #21390, #21836.

File:
1 edited

Legend:

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

    r22158 r22159  
    13341334                    style="top:<%- top %>px; left:<%- left %>px;" />
    13351335                </div>
     1336            <% } else if ( uploading ) { %>
     1337                <div class="media-progress-bar"><div></div></div>
    13361338            <% } else { %>
    13371339                <img src="<%- icon %>" class="icon" draggable="false" />
     1340                <div class="filename"><%- filename %></div>
    13381341            <% } %>
    13391342
    1340             <% if ( uploading ) { %>
    1341                 <div class="media-progress-bar"><div></div></div>
    1342             <% } %>
     1343
    13431344
    13441345            <% if ( buttons.close ) { %>
Note: See TracChangeset for help on using the changeset viewer.