Add a filter to the mime type list displayed in the iframe media uploader when viewing the media library. Fixes #6348 props wojtek.szkutnik
git-svn-id: https://develop.svn.wordpress.org/trunk@16047 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6c0440291b
commit
3365e10951
@ -1861,7 +1861,7 @@ foreach ( $post_mime_types as $mime_type => $label ) {
|
||||
|
||||
$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>';
|
||||
}
|
||||
echo implode(' | </li>', $type_links) . '</li>';
|
||||
echo implode(' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>';
|
||||
unset($type_links);
|
||||
?>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user