mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
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
This commit is contained in:
@@ -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; ';
|
||||
|
||||
Reference in New Issue
Block a user