mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 13:14:29 +00:00
Media: Upgrade MediaElement.js from 2.22.0 to 4.2.3.
Props rafa8626, grosbouff, westonruter, azaozz, Plastikschnitzer for testing. See #39686. git-svn-id: https://develop.svn.wordpress.org/trunk@41198 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2502,7 +2502,7 @@ function wp_video_shortcode( $attr, $content = '' ) {
|
||||
}
|
||||
|
||||
if ( $is_vimeo ) {
|
||||
wp_enqueue_script( 'froogaloop' );
|
||||
wp_enqueue_script( 'mediaelement-vimeo' );
|
||||
}
|
||||
|
||||
$primary = true;
|
||||
@@ -2544,6 +2544,7 @@ function wp_video_shortcode( $attr, $content = '' ) {
|
||||
if ( 'mediaelement' === $library && did_action( 'init' ) ) {
|
||||
wp_enqueue_style( 'wp-mediaelement' );
|
||||
wp_enqueue_script( 'wp-mediaelement' );
|
||||
wp_enqueue_script( 'mediaelement-vimeo' );
|
||||
}
|
||||
|
||||
// Mediaelement has issues with some URL formats for Vimeo and YouTube, so
|
||||
@@ -3945,7 +3946,7 @@ function attachment_url_to_postid( $url ) {
|
||||
*/
|
||||
function wpview_media_sandbox_styles() {
|
||||
$version = 'ver=' . get_bloginfo( 'version' );
|
||||
$mediaelement = includes_url( "js/mediaelement/mediaelementplayer.min.css?$version" );
|
||||
$mediaelement = includes_url( "js/mediaelement/mediaelementplayer-legacy.min.css?$version" );
|
||||
$wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" );
|
||||
|
||||
return array( $mediaelement, $wpmediaelement );
|
||||
|
||||
Reference in New Issue
Block a user