Rename the attachment-thumbnail class in the media modal Attachment view to prevent conflicts with wp_get_attachment_image(). see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@21909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2f4a7a42b7
commit
f7ae81b15d
|
@ -267,7 +267,7 @@
|
|||
background: #21759b;
|
||||
}
|
||||
|
||||
.attachment-thumbnail {
|
||||
.attachment-preview {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
@ -304,11 +304,11 @@
|
|||
.attachment .landscape img {
|
||||
height: 200px;
|
||||
}
|
||||
.attachment .attachment-thumbnail:hover {
|
||||
.attachment .attachment-preview:hover {
|
||||
overflow: visible;
|
||||
z-index: 1000;
|
||||
}
|
||||
.attachment .attachment-thumbnail:hover img {
|
||||
.attachment .attachment-preview:hover img {
|
||||
border: 10px solid #fff;
|
||||
box-shadow: 0 0 10px rgba( 0, 0, 0, 0.4 );
|
||||
}*/
|
||||
|
@ -322,7 +322,7 @@
|
|||
.attachment .landscape img {
|
||||
height: 200px;
|
||||
}
|
||||
.attachment .attachment-thumbnail:hover img {
|
||||
.attachment .attachment-preview:hover img {
|
||||
height: auto;
|
||||
width: auto;
|
||||
max-height: 200px;
|
||||
|
@ -356,7 +356,7 @@
|
|||
transition: width 200ms;
|
||||
}
|
||||
|
||||
.attachment-thumbnail .media-progress-bar {
|
||||
.attachment-preview .media-progress-bar {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 15%;
|
||||
|
|
|
@ -441,8 +441,8 @@ if ( typeof wp === 'undefined' )
|
|||
}
|
||||
}, {
|
||||
defaultProps: {
|
||||
orderby: 'date',
|
||||
order: 'DESC'
|
||||
orderby: 'date',
|
||||
order: 'DESC'
|
||||
},
|
||||
|
||||
defaultArgs: {
|
||||
|
|
|
@ -1645,7 +1645,7 @@ function wp_print_media_templates( $attachment ) {
|
|||
</script>
|
||||
|
||||
<script type="text/html" id="tmpl-attachment">
|
||||
<div class="attachment-thumbnail type-<%- type %> subtype-<%- subtype %> <%- orientation %>">
|
||||
<div class="attachment-preview type-<%- type %> subtype-<%- subtype %> <%- orientation %>">
|
||||
<% if ( thumbnail ) { %>
|
||||
<img src="<%- thumbnail %>" draggable="false" />
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue