Ticket #24902: 24902.4.diff
File 24902.4.diff, 1.5 KB (added by , 11 years ago) |
---|
-
wp-includes/js/mediaelement/wp-mediaelement.js
3 3 mejs.plugins.silverlight[0].types.push('video/x-ms-wmv'); 4 4 mejs.plugins.silverlight[0].types.push('audio/x-ms-wma'); 5 5 6 $(function () { 7 $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer(); 6 $(function () { 7 var settings = {}; 8 9 if ( typeof wpmejsL10n !== 'undefined' ) 10 settings.pluginPath = wpmejsL10n.pluginPath; 11 12 $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings ); 8 13 }); 9 14 10 }(jQuery)); 11 No newline at end of file 15 }(jQuery)); -
wp-includes/script-loader.php
302 302 303 303 304 304 $scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement.js", array('mediaelement'), false, 1 ); 305 did_action( 'init' ) && $scripts->localize( 'wp-mediaelement', 'wpmejsL10n', array( 306 'pluginPath' => includes_url( 'js/mediaelement/' ), 307 ) ); 305 308 306 309 $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 ); 307 310 did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(