Use jquery dependency in wp_register_script()
-
Hi naa986, great Plugin! Can you add jquery as a dependency on line #84 of videojs-html5-player.php to resolve the following issue:
https://github.com/videojs/video.js/issues/2386
The following change needs to be made, from:
wp_register_script(‘videojs’, $plugin_url . ‘/videojs/video.js’);
to…
wp_register_script(‘videojs’, $plugin_url . ‘/videojs/video.js’, array( ‘jquery’ ));
That’s it, thanks! ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use jquery dependency in wp_register_script()’ is closed to new replies.