mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Use the proper height property when calculating video size in wp_underscore_video_template()
.
Props Fab1en. See #28190. Built from https://develop.svn.wordpress.org/trunk@28807 git-svn-id: http://core.svn.wordpress.org/trunk@28616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ceb642b2a
commit
54915274fa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user