WordPress.org

Make WordPress Core

Changeset 27734


Ignore:
Timestamp:
03/26/2014 12:14:18 PM (6 years ago)
Author:
wonderboymusic
Message:

Always localize mediaelement when passing settings to the page via JSON. wp-mediaelement only gets triggered for audio and video shortcodes, playlists need the path passed to the page as well, as they don't enqueue wp-mediaelement.

See #27509.

File:
1 edited

Legend:

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

    r27733 r27734  
    327327
    328328    $scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement.js", array('mediaelement'), false, 1 );
    329     did_action( 'init' ) && $scripts->localize( 'wp-mediaelement', '_wpmejsSettings', array(
     329    did_action( 'init' ) && $scripts->localize( 'mediaelement', '_wpmejsSettings', array(
    330330        'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
    331331    ) );
Note: See TracChangeset for help on using the changeset viewer.