From c8ee7e6f575ff999d1b85ed5c99ec5a124c56609 Mon Sep 17 00:00:00 2001 From: Heckyel Date: Sun, 5 Feb 2017 17:16:14 -0500 Subject: Patch librevideojs-html5-player.php --- librevideojs-html5-player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'librevideojs-html5-player.php') diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index 8bc90ff..6c3ed5e 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -85,7 +85,7 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { function librevideojs_html5_player_enqueue_scripts() { global $post; - if (strpos($post->post_content, '[librevideojs_video') !== false){ + if (is_home() || strpos($post->post_content, '[librevideojs_video') !== false){ $plugin_url = plugins_url('', __FILE__); wp_register_script('librevideojs', $plugin_url . '/librevideojs/js/cliplibrejs.dev.js', array(), LIBREVIDEOJS_HTML5_PLAYER_VERSION); wp_enqueue_script('librevideojs'); -- cgit v1.2.3