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
This commit is contained in:
parent
d02ef44f33
commit
4aa0066736
@ -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
Block a user