Make WordPress Core


Ignore:
Timestamp:
02/12/2008 04:47:31 AM (17 years ago)
Author:
ryan
Message:

Multimedia uploader styling from andy. see #5824

File:
1 edited

Legend:

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

    r6782 r6795  
    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');
     
    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";
Note: See TracChangeset for help on using the changeset viewer.