From 2f0fc3b97dacee4e1ee3b2f204d85b32e20fc662 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 11 Sep 2015 18:30:26 +0000 Subject: [PATCH] After [34048], restore the `else` statement for `h` (height of video) in `wp_underscore_video_template()`. See #33798. Built from https://develop.svn.wordpress.org/trunk@34049 git-svn-id: http://core.svn.wordpress.org/trunk@34017 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media-template.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index ea758efe2d..ae39d57dfa 100644 --- a/wp-includes/media-template.php +++ b/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; '; diff --git a/wp-includes/version.php b/wp-includes/version.php index e966ff62f6..05938c9ff4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34048'; +$wp_version = '4.4-alpha-34049'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.