Media: Add awareness to Attachment Display Settings that audio and video can be embedded.

Also:
 * Add file length metadata to Attachment Details.
 * Round the kb/s bitrate on post.php.

fixes #24449.



git-svn-id: http://core.svn.wordpress.org/trunk@24777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin
2013-07-23 05:39:08 +00:00
parent 1d46c2fd3b
commit 2c67dea9bc
5 changed files with 82 additions and 79 deletions

View File

@@ -2470,7 +2470,7 @@ function attachment_submitbox_metadata() {
if ( ! empty( $meta['bitrate'] ) ) : ?>
<div class="misc-pub-section">
<?php _e( 'Bitrate:' ); ?> <strong><?php
echo $meta['bitrate'] / 1000, 'kb/s';
echo round( $meta['bitrate'] / 1000 ), 'kb/s';
if ( ! empty( $meta['bitrate_mode'] ) )
echo ' ', strtoupper( $meta['bitrate_mode'] );