• Resolved benjamin.anakena

    (@benjaminanakena)


    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)
  • oh yes…I can confirm

    the last update (but only the last? I didn’t check before…) is a mess!

    captcha.php has 31823 lines of code!

    with HUGE and unnecessary white space!

    How this may happen? It means that they didn’t even check this garbage…

    that’s an outrage to the wordpress users 😀

Viewing 1 replies (of 1 total)
  • The topic ‘Incompatibility with W3TC’ is closed to new replies.