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:
parent
bd6a09c708
commit
7a7b9c89ec
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue