Make WordPress Core

Ticket #5824: 5824.diff

File 5824.diff, 1.6 KB (added by andy, 18 years ago)
  • wp-admin/includes/media.php

     
    444444        $thumb_url = wp_get_attachment_thumb_url( $attachment_id );
    445445        if ( empty($thumb_url) )
    446446                $thumb_url = wp_mime_type_icon( $attachment_id );
     447        if ( empty($thumb_url) && ( $post =& get_post( $attachment_id ) ) && substr($post->post_mime_type, 0, 5) == 'image' )
     448                        $thumb_url = wp_get_attachment_url( $attachment_id );
    447449
    448450        $title_label = __('Title');
    449451        $description_label = __('Description');
     
    493495
    494496        $item .= "
    495497                </fieldset>
    496                 <p><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p>
     498                <p class='delete'><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p>
    497499        </div>
    498500";
    499501
  • wp-admin/css/media.css

     
    139139        border-right: 3px solid #99d;
    140140}
    141141.multimedia-item .thumbnail {
    142 
     142        max-width: 128px;
     143        max-height: 128px;
    143144}
    144145.multimedia-item .pinkynail {
    145146        position: absolute;
    146         top: 3px;
    147         left: 3px;
     147        top: 2px;
     148        left: 2px;
     149        height: 32px;
    148150        max-width: 40px;
    149         max-height: 40px;
    150151}
    151152.describe {
    152153        display: none;
     
    166167.describe label {
    167168        padding-right: 1em;
    168169}
    169 
    170 a.delete {
     170p.delete {
    171171        clear: both;
     172        margin: 0;
    172173}
     174p.delete a {
     175        padding: 4px;
     176}
    173177.describe-toggle-on, .describe-toggle-off {
    174178        line-height: 36px;
    175179        z-index: 2;