diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index bd3bbe0e91..e2f78d63f4 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -2466,7 +2466,7 @@ function attachment_submitbox_metadata() { post_mime_type ) ): + if ( preg_match( '#^(audio|video)#', $post->post_mime_type ) ): /** * Audio and video metadata fields to be shown in the publish meta box.