aboutsummaryrefslogtreecommitdiffstats
path: root/librevideojs-html5-player.php
diff options
context:
space:
mode:
Diffstat (limited to 'librevideojs-html5-player.php')
-rw-r--r--librevideojs-html5-player.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php
index 94ccaf1..b0cffd7 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') && !is_home()){
+ if (!is_admin() && strpos($post->post_content, '[librevideojs_video')){
$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');