After [29106], check for data.meta
before attempting to render data.meta.bitrate
.
See #28839. git-svn-id: https://develop.svn.wordpress.org/trunk@29208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
753a60c709
commit
5e1556a4ce
@ -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 ) { #>
|
||||
|
Loading…
Reference in New Issue
Block a user