mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@27734 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -326,7 +326,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
|
||||
$scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement.js", array('mediaelement'), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'wp-mediaelement', '_wpmejsSettings', array(
|
||||
did_action( 'init' ) && $scripts->localize( 'mediaelement', '_wpmejsSettings', array(
|
||||
'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
|
||||
) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user