Support » Plugin: Autoptimize » Autoptimize and Media Queries

  • Resolved jvwissen

    (@jvwissen)


    I’m having an issue with autoptimize plugin and responsive websites loading css with media queries like media=”screen and (max-width: 940px)”

    The media tag is split on the space and thus only the ‘screen’ word is used and not the whole string.

    When changing line 47 in the classes/autoptimizeStyle.php file from:

    $media[] = current(explode(' ',trim($elem),2));

    to:

    $media[] = $elem;

    the media tags are correct.

    http://wordpress.org/extend/plugins/autoptimize/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Autoptimize and Media Queries’ is closed to new replies.