mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@21784 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1576,6 +1576,7 @@ function wp_prepare_attachment_for_js( $attachment ) {
|
||||
'mime' => $attachment->post_mime_type,
|
||||
'type' => $type,
|
||||
'subtype' => $subtype,
|
||||
'icon' => wp_mime_type_icon( $attachment->post_mime_type ),
|
||||
);
|
||||
|
||||
if ( $meta && 'image' === $type ) {
|
||||
@@ -1646,7 +1647,7 @@ function wp_print_media_templates( $attachment ) {
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="tmpl-attachment">
|
||||
<div class="attachment-thumbnail <%- orientation %>">
|
||||
<div class="attachment-thumbnail type-<%- type %> subtype-<%- subtype %> <%- orientation %>">
|
||||
<% if ( thumbnail ) { %>
|
||||
<img src="<%- thumbnail %>" />
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user