• Resolved Spacetime

    (@spacetime)


    It seems that the plugin removes value 0 from the attribute when using Autoptimize plugin:

    <input type="hidden" name="price_option" value="0">

    becomes

    <input
    type=hidden name=price_option value>

    This breaks the form where the input is used.

    Autoptimize author says:

    that’s W3 Total Cache enforcing it’s HTML optimizer upon Autoptimize

    Please advise.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @spacetime

    I am sorry about the issue you are experiencing and I am happy to help!
    This is confirmed regression in 0.11.0 Can you please apply this fix:
    and replace line 356 in lib/Minify/Minify/HTML.php
    if ( empty( $m[3] ) ) {
    with
    if ( $m[3] === ” ) {
    Thank you!

    Thread Starter Spacetime

    (@spacetime)

    It works!

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong HTML optimization’ is closed to new replies.