WordPress.org

Make WordPress Core

Changeset 21909


Ignore:
Timestamp:
09/19/2012 01:10:17 AM (8 years ago)
Author:
koopersmith
Message:

Rename the attachment-thumbnail class in the media modal Attachment view to prevent conflicts with wp_get_attachment_image(). see #21390.

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/css/media-views.css

    r21907 r21909  
    268268}
    269269
    270 .attachment-thumbnail {
     270.attachment-preview {
    271271    position: absolute;
    272272    top: 0;
     
    305305    height: 200px;
    306306}
    307 .attachment .attachment-thumbnail:hover {
     307.attachment .attachment-preview:hover {
    308308    overflow: visible;
    309309    z-index: 1000;
    310310}
    311 .attachment .attachment-thumbnail:hover img {
     311.attachment .attachment-preview:hover img {
    312312    border: 10px solid #fff;
    313313    box-shadow: 0 0 10px rgba( 0, 0, 0, 0.4 );
     
    323323    height: 200px;
    324324}
    325 .attachment .attachment-thumbnail:hover img {
     325.attachment .attachment-preview:hover img {
    326326    height: auto;
    327327    width: auto;
     
    357357}
    358358
    359 .attachment-thumbnail .media-progress-bar {
     359.attachment-preview .media-progress-bar {
    360360    position: absolute;
    361361    top: 50%;
  • trunk/wp-includes/js/media-models.js

    r21900 r21909  
    442442    }, {
    443443        defaultProps: {
    444             orderby:       'date',
    445             order:         'DESC'
     444            orderby: 'date',
     445            order:   'DESC'
    446446        },
    447447
  • trunk/wp-includes/media.php

    r21833 r21909  
    16461646
    16471647    <script type="text/html" id="tmpl-attachment">
    1648         <div class="attachment-thumbnail type-<%- type %> subtype-<%- subtype %> <%- orientation %>">
     1648        <div class="attachment-preview type-<%- type %> subtype-<%- subtype %> <%- orientation %>">
    16491649            <% if ( thumbnail ) { %>
    16501650                <img src="<%- thumbnail %>" draggable="false" />
Note: See TracChangeset for help on using the changeset viewer.