Skip to content

Commit

Permalink
Added a way fix filter issue on type from media (#716)
Browse files Browse the repository at this point in the history
Added a way to fix filter issue on type from media
  • Loading branch information
CrochetFeve0251 authored May 26, 2023
1 parent c529cf9 commit 4fd0881
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/admin/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ function _imagify_sort_attachments_by_status( $vars ) {
),
) );

$vars['post_mime_type'] = imagify_get_mime_types();
if ( ! key_exists( 'post_mime_type', $vars ) ) {
$vars['post_mime_type'] = imagify_get_mime_types();
}

return $vars;
}

0 comments on commit 4fd0881

Please sign in to comment.