Security cleanup, hardening and malware removal
This commit is contained in:
@@ -79,12 +79,21 @@ if ( ! class_exists( 'Jet_Woo_Product_Gallery_Assets' ) ) {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function enqueue_scripts() {
|
||||
public function enqueue_scripts() {
|
||||
if ( ! wp_script_is( 'jquery-slick', 'registered' ) ) {
|
||||
wp_register_script(
|
||||
'jquery-slick',
|
||||
jet_woo_product_gallery()->plugin_url( 'assets/lib/slick/slick.min.js' ),
|
||||
array( 'jquery' ),
|
||||
'1.8.1',
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
wp_enqueue_script(
|
||||
'jet-woo-product-gallery',
|
||||
jet_woo_product_gallery()->plugin_url( 'assets/js/jet-woo-product-gallery.js' ),
|
||||
array( 'jquery', 'elementor-frontend' ),
|
||||
array( 'jquery', 'elementor-frontend', 'jquery-slick' ),
|
||||
jet_woo_product_gallery()->get_version(),
|
||||
true
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user