From 0adec3db8ab3a5727e5a0c9c622556e88a86c0dc Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 23 Jun 2014 20:34:14 +0000 Subject: [PATCH] Use the proper height property when calculating video size in `wp_underscore_video_template()`. Props Fab1en. See #28190. git-svn-id: https://develop.svn.wordpress.org/trunk@28807 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index 1fdcb7f0a9..2c0ff80762 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -60,7 +60,7 @@ function wp_underscore_video_template() { } if ( w !== data.model.width ) { - h = Math.ceil( ( h * w ) / data.model.width ); + h = Math.ceil( ( data.model.height * w ) / data.model.width ); } else { h = data.model.height; }