From 4aa0066736d20930d560fae6627a3c00720ebcca Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 8 Oct 2013 15:31:32 +0000 Subject: [PATCH] Use parens to ensure that RegEx OR matches the front when determining that mime-type matches `audio|video` in `attachment_submitbox_metadata()`. Props kovshenin. See #23926. git-svn-id: https://develop.svn.wordpress.org/trunk@25727 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.