Plugin adding 20 000 lines of code to source
-
Dear developers,
your plugin is adding this code to the source code of the website:
jQuery( function( $ ) { function wcFreeShippingShowHideMinAmountFieldWOOCS( el ) { var form = $( el ).closest( 'form' ); var minAmountField = $( 'input[id^=woocommerce_free_shipping_woocs_fixed_min_shipping_]', form ).closest( 'tr' ); if ( 'coupon' === $( el ).val() || '' === $( el ).val() ) { minAmountField.hide(); } else { minAmountField.show(); } } $( document.body ).on( 'change', '#woocommerce_free_shipping_requires', function() { wcFreeShippingShowHideMinAmountFieldWOOCS( this ); }); // Change while load. $( '#woocommerce_free_shipping_requires' ).change(); $( document.body ).on( 'wc_backbone_modal_loaded', function( evt, target ) { if ( 'wc-modal-shipping-method-settings' === target ) { wcFreeShippingShowHideMinAmountFieldWOOCS( $( '#wc-backbone-modal-dialog #woocommerce_free_shipping_requires', evt.currentTarget ) ); } } ); });
Can you fix it please? It is adding 20 000 lines of code…
Thank you!
Josif
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin adding 20 000 lines of code to source’ is closed to new replies.