Make WordPress Core

Ticket #24902: 24902.4.diff

File 24902.4.diff, 1.5 KB (added by azaozz, 13 years ago)
  • wp-includes/js/mediaelement/wp-mediaelement.js

     
    33        mejs.plugins.silverlight[0].types.push('video/x-ms-wmv');
    44        mejs.plugins.silverlight[0].types.push('audio/x-ms-wma');
    55
    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 );
    813        });
    914
    10 }(jQuery));
    11  No newline at end of file
     15}(jQuery));
  • wp-includes/script-loader.php

     
    302302
    303303
    304304        $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        ) );
    305308
    306309        $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 );
    307310        did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(