Make WordPress Core

Changeset 22677


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

Revert [22675]. wp_mime_type_icon() is more accurate when given a post ID, rather than a mime type. The "speed" mostly comes down to the ordering of cache hits, rather than any performance issues like #22503. see #21390.

File:
1 edited

Legend:

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

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