Make WordPress Core

Changeset 16047


Ignore:
Timestamp:
10/28/2010 12:41:37 PM (14 years ago)
Author:
westi
Message:

Add a filter to the mime type list displayed in the iframe media uploader when viewing the media library. Fixes #6348 props wojtek.szkutnik

File:
1 edited

Legend:

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

    r15920 r16047  
    18621862    $type_links[] = "<li><a href='" . esc_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . "'$class>" . sprintf(_n($label[2][0], $label[2][1], $num_posts[$mime_type]), "<span id='$mime_type-counter'>" . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>';
    18631863}
    1864 echo implode(' | </li>', $type_links) . '</li>';
     1864echo implode(' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>';
    18651865unset($type_links);
    18661866?>
Note: See TracChangeset for help on using the changeset viewer.