diff --git a/wp-h5p-xapi.php b/wp-h5p-xapi.php index 8f92a2d..2ea79eb 100644 --- a/wp-h5p-xapi.php +++ b/wp-h5p-xapi.php @@ -19,10 +19,10 @@ function h5pxapi_enqueue_scripts() { - wp_register_script("wp-h5p-xapi", plugins_url() . "/wp-h5p-xapi/wp-h5p-xapi.js", array("jquery")); + wp_register_script("wp-h5p-xapi", plugins_url() . "/wp-h5p-xapi/wp-h5p-xapi.js", array("jquery"), filemtime(__FILE__ ), true); wp_enqueue_script("wp-h5p-xapi"); - wp_register_style("wp-h5p-xapi", plugins_url() . "/wp-h5p-xapi/wp-h5p-xapi.css"); + wp_register_style("wp-h5p-xapi", plugins_url() . "/wp-h5p-xapi/wp-h5p-xapi.css", array(), filemtime(__FILE__ ), 'all'); wp_enqueue_style("wp-h5p-xapi"); $xapi_js_settings = array();