if ( preg_match( '#^(audio|video)/#',
$post->post_mime_type
) ) { echo ': ' .
__( 'Displayed on attachment pages.'
);
} ?>
</label>
<?php
wp_editor( format_to_edit( $post->post_content
), 'attachment_content',
$editor_args ); ?>
</div>
<?php
$extras =
get_compat_media_markup( $post->ID
);
echo $extras['item'
];
echo '<input type="hidden" id="image-edit-context" value="edit-attachment" />' . "\n";
}/**
* Displays non-editable attachment metadata in the publish meta box.
*
* @since 3.5.0
*/
function attachment_submitbox_metadata() { $post =
get_post();