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.


Built from https://develop.svn.wordpress.org/trunk@25727


git-svn-id: http://core.svn.wordpress.org/trunk@25640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2013-10-08 15:32:10 +00:00
parent bd6a09c708
commit 7a7b9c89ec
1 changed files with 1 additions and 1 deletions

View File

@ -2466,7 +2466,7 @@ function attachment_submitbox_metadata() {
<?php
endif;
if ( preg_match( '#^audio|video#', $post->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.