@@ -46,8 +46,8 @@ function ableplayer_plugin_deactivated() {
4646 */
4747function ableplayer_enqueue_scripts () {
4848 // Register/enqueue other dependencies.
49- wp_enqueue_script ( 'js-cookie ' , plugins_url ( 'thirdparty ' , __FILE__ ) . '/js.cookie.js ' , array ( 'jquery ' ), ABLEPLAYER_VERSION );
50- wp_enqueue_script ( 'vimeo ' , 'https://player.vimeo.com/api/player.js ' , array (), ABLEPLAYER_VERSION );
49+ wp_enqueue_script ( 'js-cookie ' , plugins_url ( 'thirdparty ' , __FILE__ ) . '/js.cookie.js ' , array ( 'jquery ' ), ABLEPLAYER_VERSION , true );
50+ wp_enqueue_script ( 'vimeo ' , 'https://player.vimeo.com/api/player.js ' , array (), ABLEPLAYER_VERSION , true );
5151
5252 // if the environment is production, use minified files. Otherwise, inherit the value of SCRIPT_DEBUG.
5353 $ is_production = ( function_exists ( 'wp_get_environment_type ' ) && wp_get_environment_type () === 'production ' ) ? true : SCRIPT_DEBUG ;
@@ -78,7 +78,7 @@ function ableplayer_enqueue_scripts() {
7878 $ css_dir = apply_filters ( 'able_player_css ' , plugins_url ( 'build ' , __FILE__ ) . '/ ' . $ css_file , $ is_production );
7979
8080 // Enqueue Able Player script and CSS.
81- wp_enqueue_script ( 'ableplayer ' , $ js_dir , array ( 'jquery ' ), ABLEPLAYER_VERSION );
81+ wp_enqueue_script ( 'ableplayer ' , $ js_dir , array ( 'jquery ' ), ABLEPLAYER_VERSION , true );
8282 wp_enqueue_style ( 'ableplayer ' , $ css_dir , array (), ABLEPLAYER_VERSION );
8383}
8484add_action ( 'wp_enqueue_scripts ' , 'ableplayer_enqueue_scripts ' );
0 commit comments