Cleanups for audio/video metadata, see [27862].
see #27574. Built from https://develop.svn.wordpress.org/trunk@27864 git-svn-id: http://core.svn.wordpress.org/trunk@27695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -140,7 +140,7 @@ if ( 'attachment' == $post_type ) {
|
||||
add_meta_box( 'submitdiv', __('Save'), 'attachment_submit_meta_box', null, 'side', 'core' );
|
||||
add_action( 'edit_form_after_title', 'edit_form_image_editor' );
|
||||
|
||||
if ( preg_match( '#^audio#', $post->post_mime_type ) ) {
|
||||
if ( 0 === strpos( $post->post_mime_type, 'audio/' ) ) {
|
||||
add_meta_box( 'attachment-id3', __( 'Metadata' ), 'attachment_id3_data_meta_box', null, 'normal', 'core' );
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user