From 4fd088118e756d9fb7b2f7eee556d223342e0a5f Mon Sep 17 00:00:00 2001 From: Cyrille C <18537428+CrochetFeve0251@users.noreply.github.com> Date: Fri, 26 May 2023 15:50:45 +0200 Subject: [PATCH] Added a way fix filter issue on type from media (#716) Added a way to fix filter issue on type from media --- inc/admin/upload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/admin/upload.php b/inc/admin/upload.php index 1a4927ec0..b24249a5b 100755 --- a/inc/admin/upload.php +++ b/inc/admin/upload.php @@ -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; }