WordPress.org

Ready to get started?Download WordPress

Forums

WP-HTML-Compression
[resolved] Fix for pre-PHP 5.2 (2 posts)

  1. tomweiss
    Member
    Posted 3 years ago #

    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/

  2. Steven Vachon
    Member
    Plugin Author

    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic