Make WordPress Core


Ignore:
Timestamp:
08/01/2013 01:15:14 PM (11 years ago)
Author:
nacin
Message:

Pass pluginPath to MediaElement.js, fixing playback when ME.js is served through load-scripts.php.

props ocean90, wonderboymusic, azaozz.
fixes #24902.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r24786 r24940  
    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', '_wpmejsSettings', array(
     306        'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
     307    ) );
    305308
    306309    $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.