Incompatibility with W3TC
-
Hi!
I’ve found an incompatibility with the W3TC even if I enable the ajax mode. It is caused by W3TC HTML minifier.The minifier doesn’t like:
return cptch_add_scripts() . '<span class="cptch_wrap cptch_ajax_wrap" data-cptch-form="' . $form_slug . '" data-cptch-input="' . $input_name . '" data-cptch-class="' . $class_name . '"> <noscript>' . __( 'In order to pass the CAPTCHA please enable JavaScript', 'captcha' ) . '</noscript> </span>'; }
It doesn’t like the line breaks between the <span> attributes and minifies it to “<spanclass” without any space.
I’ve tested this code in multiple online HTML minifiers and most of them are failing. So the double line breaks must be an edge case that is not correctly supported by most minifiers.
Thanks for fixing this.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Incompatibility with W3TC’ is closed to new replies.