From 882eef809e817ebbce621d35bf4333b1873498d1 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 11 Sep 2015 18:29:26 +0000 Subject: [PATCH] After [34048], restore the `else` statement for `h` (height of video) in `wp_underscore_video_template()`. See #33798. git-svn-id: https://develop.svn.wordpress.org/trunk@34049 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index ea758efe2d..ae39d57dfa 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -67,7 +67,9 @@ function wp_underscore_video_template() { if ( w !== data.model.width ) { h = Math.ceil( ( data.model.height * w ) / data.model.width ); - } + } else { + h = data.model.height; + } if ( w ) { w_rule = 'width: ' + w + 'px; ';