mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +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:
@@ -11,9 +11,12 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! wp_is_mobile() ) {
|
||||
wp_enqueue_style( 'wp-mediaelement' );
|
||||
wp_enqueue_script( 'mediaelement-vimeo' );
|
||||
wp_enqueue_script( 'wp-mediaelement' );
|
||||
wp_localize_script( 'mediaelement', '_wpmejsSettings', array(
|
||||
'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
|
||||
'classPrefix' => 'mejs-',
|
||||
'stretching' => 'responsive',
|
||||
'pauseOtherPlayers' => '',
|
||||
) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user