Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ZIP filter added.

  • Loading branch information...
commit 0dae1ed5498b4b0b7b3dd72786b0386efef4a1c8 1 parent 4cc6389
@samikeijonen authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 media-filter.php
View
5 media-filter.php
@@ -147,10 +147,11 @@ function media_filter_columns_sortable( $columns ) {
*/
function media_filter_post_mime_types( $post_mime_types ) {
- /* pdf is 'application/pdf'. */
+ /* PDF is 'application/pdf', ZIP is 'application/zip'. */
$post_mime_types['application/pdf'] = array( __( 'PDFs', 'media-filter' ), __( 'Manage PDFs', 'media-filter' ), _n_noop( 'PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>' ) );
-
+ $post_mime_types['application/zip'] = array( __( 'ZIPs', 'media-filter' ), __( 'Manage ZIPs', 'media-filter' ), _n_noop( 'ZIP <span class="count">(%s)</span>', 'ZIPs <span class="count">(%s)</span>' ) );
+
/* Return the $post_mime_types variable. */
return $post_mime_types;
Please sign in to comment.
Something went wrong with that request. Please try again.