Upgrade MediaElement to 2.15.0:

* It is required to set `height` on the parent `.wp-video` wrapper for video
* Fixes the play button hover problem in Chrome
* Includes my pull request: https://github.com/johndyer/mediaelement/pull/1273

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

See #29110.


git-svn-id: https://develop.svn.wordpress.org/trunk@29457 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-08-09 20:43:25 +00:00
parent 45368dbfaa
commit e23c1ae3ff
7 changed files with 107 additions and 91 deletions

View File

@@ -1874,11 +1874,14 @@ function wp_video_shortcode( $attr, $content = '' ) {
}
$html .= '</video>';
$width_rule = '';
$width_rule = $height_rule = '';
if ( ! empty( $atts['width'] ) ) {
$width_rule = sprintf( ' width: %dpx;', $atts['width'] );
$width_rule = sprintf( 'width: %dpx; ', $atts['width'] );
}
$output = sprintf( '<div style="%s" class="wp-video">%s</div>', $width_rule, $html );
if ( ! empty( $atts['height'] ) ) {
$height_rule = sprintf( 'height: %dpx; ', $atts['height'] );
}
$output = sprintf( '<div style="%s%s" class="wp-video">%s</div>', $width_rule, $height_rule, $html );
/**
* Filter the output of the video shortcode.