• Resolved tomweiss

    (@tomweiss)


    Works fine for me in pre-PHP 5.2 by changing the regex to the following:

    $pattern = ‘/<(?P<script>script).*?<\/script\s*>|<(?P<style>style).*?<\/style\s*>|<!(?P<comment>–).*?–>|<(?P<tag>[\/\w.:-]*)(?:”.*?”|\’.*?\’|[^\'”>]+)*>|(?P<text>((<[^!\/\w.:-])?[^<]*)+)|/si’;

    http://wordpress.org/extend/plugins/wp-html-compression/

Viewing 1 replies (of 1 total)
  • Plugin Author Steven Vachon

    (@prometh)

    Cool, thanks; I appreciate it. Unfortunately, I currently don’t have the time to test this, so it’s possible that it won’t make it into the next release. I’ll see what I can do. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-HTML-Compression] Fix for pre-PHP 5.2’ is closed to new replies.