Security cleanup, hardening and malware removal

This commit is contained in:
2026-03-21 21:55:08 +01:00
parent 9d6081f00d
commit b11e37fab9
3196 changed files with 644 additions and 1730981 deletions

View File

@@ -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
);