Make WordPress Core

Changeset 28807


Ignore:
Timestamp:
06/23/2014 08:34:14 PM (10 years ago)
Author:
wonderboymusic
Message:

Use the proper height property when calculating video size in wp_underscore_video_template().

Props Fab1en.
See #28190.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r28748 r28807  
    6161
    6262    if ( w !== data.model.width ) {
    63         h = Math.ceil( ( h * w ) / data.model.width );
     63        h = Math.ceil( ( data.model.height * w ) / data.model.width );
    6464    } else {
    6565        h = data.model.height;
Note: See TracChangeset for help on using the changeset viewer.