From 87e14a7eccf7af6af1361ac171212642c03797db Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 17 Jul 2014 17:42:16 +0000 Subject: [PATCH] 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 --- wp-includes/media-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 7ed11c66e3..a026f22cc2 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -328,7 +328,7 @@ function wp_print_media_templates() {
{{ data.fileLength }}
<# } #> - <# if ( 'audio' === data.type && data.meta.bitrate ) { #> + <# if ( 'audio' === data.type && data.meta && data.meta.bitrate ) { #>
{{ Math.round( data.meta.bitrate / 1000 ) }}kb/s <# if ( data.meta.bitrate_mode ) { #>