After [29106], check for `data.meta` before attempting to render `data.meta.bitrate`.

See #28839.

Built from https://develop.svn.wordpress.org/trunk@29208


git-svn-id: http://core.svn.wordpress.org/trunk@28992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-07-17 17:42:16 +00:00
parent 3ca4223a00
commit 87e14a7ecc
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ function wp_print_media_templates() {
<div class="file-length"><strong><?php _e( 'Length:' ); ?></strong> {{ data.fileLength }}</div>
<# } #>
<# if ( 'audio' === data.type && data.meta.bitrate ) { #>
<# if ( 'audio' === data.type && data.meta && data.meta.bitrate ) { #>
<div class="bitrate">
<strong><?php _e( 'Bitrate:' ); ?></strong> {{ Math.round( data.meta.bitrate / 1000 ) }}kb/s
<# if ( data.meta.bitrate_mode ) { #>