Make WordPress Core


Ignore:
Timestamp:
08/09/2014 08:43:25 PM (11 years ago)
Author:
wonderboymusic
Message:

Upgrade MediaElement to 2.15.0:

All changes:
https://github.com/johndyer/mediaelement/compare/2.14.2...master

See #29110.

File:
1 edited

Legend:

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

    r29456 r29457  
    18751875    $html .= '</video>';
    18761876
    1877     $width_rule = '';
     1877    $width_rule = $height_rule = '';
    18781878    if ( ! empty( $atts['width'] ) ) {
    1879         $width_rule = sprintf( ' width: %dpx;', $atts['width'] );
    1880     }
    1881     $output = sprintf( '<div style="%s" class="wp-video">%s</div>', $width_rule, $html );
     1879        $width_rule = sprintf( 'width: %dpx; ', $atts['width'] );
     1880    }
     1881    if ( ! empty( $atts['height'] ) ) {
     1882        $height_rule = sprintf( 'height: %dpx; ', $atts['height'] );
     1883    }
     1884    $output = sprintf( '<div style="%s%s" class="wp-video">%s</div>', $width_rule, $height_rule, $html );
    18821885
    18831886    /**
Note: See TracChangeset for help on using the changeset viewer.