Make WordPress Core

Changeset 22043


Ignore:
Timestamp:
09/27/2012 06:07:56 AM (12 years ago)
Author:
koopersmith
Message:

Use the attachment id to look up the mime type icon instead of the raw mime type string, as wp_mime_type_icon() runs a broader search when using an id. see #21390.

File:
1 edited

Legend:

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

    r22012 r22043  
    13211321        'type'        => $type,
    13221322        'subtype'     => $subtype,
    1323         'icon'        => wp_mime_type_icon( $attachment->post_mime_type ),
     1323        'icon'        => wp_mime_type_icon( $attachment->ID ),
    13241324    );
    13251325
Note: See TracChangeset for help on using the changeset viewer.