Make WordPress Core

Changeset 22675


Ignore:
Timestamp:
11/19/2012 08:39:14 AM (12 years ago)
Author:
nacin
Message:

wp_mime_type_icon() is faster when given a mime type, rather than a post ID. see #21390.

File:
1 edited

Legend:

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

    r22671 r22675  
    12621262        'type'        => $type,
    12631263        'subtype'     => $subtype,
    1264         'icon'        => wp_mime_type_icon( $attachment->ID ),
     1264        'icon'        => wp_mime_type_icon( $attachment->post_mime_type ),
    12651265        'dateFormatted' => mysql2date( get_option('date_format'), $attachment->post_date ),
    12661266    );
Note: See TracChangeset for help on using the changeset viewer.