johndyer/mediaelement — Issue #394: MEDIAELEMENTJS_DIR and https dashboard problem
Author: maiux
Created: 2012-02-16 14:37:55+00:00
State: open

Currently MediaElementJS uses WP_PLUGIN_DIR constant to inject js and css in WP. Even if it uses is_admin() API, on dashboard login page will break https security.

I made a little patch for mediaelement-js-wp.php. Instead of:

define('MEDIAELEMENTJS_DIR', WP_PLUGIN_URL.'/media-element-html5-video-and-audio-player/mediaelement/');

I'm using:

define('MEDIAELEMENTJS_DIR', plugin_dir_url(__FILE__)."mediaelement/");

This works for WP >=2.8.

Thanks