diff --git a/duoshuo/WordPress.php b/duoshuo/WordPress.php index d63ed25..1a10ef0 100644 --- a/duoshuo/WordPress.php +++ b/duoshuo/WordPress.php @@ -337,19 +337,28 @@ public function appendScripts(){ static $once = 0; if ($once ++) return; -?> - - + + + + + + + wp_register_script('duoshuo-embed', $url, array(), null,true); - wp_enqueue_script('duoshuo-embed'); + wp_enqueue_script('duoshuo-embed'); + } } /** @@ -361,18 +370,24 @@ public function printScripts(){ if ($scriptsPrinted) return; - $duoshuo_shortname = 'static';?> - + + +