Skip to content
This repository was archived by the owner on Jul 4, 2019. It is now read-only.

Commit ff06cd0

Browse files
author
Steven Vachon
committed
v0.5.7
1 parent eb6a7eb commit ff06cd0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

html-minify.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
HTML Minify 0.5.6 <http://www.svachon.com/blog/html-minify/>
3+
HTML Minify 0.5.7 <http://www.svachon.com/blog/html-minify/>
44
Reduce file size by shortening URLs and safely removing all standard comments and unnecessary white space from an HTML document.
55
*/
66

@@ -104,12 +104,14 @@ protected function minifyHTML($html)
104104
// Will still end up shortening URLs within the script, but should be OK..
105105
// Gets Shortened: test.href="http://domain.com/wp"+"-content";
106106
// Gets Bypassed: test.href = "http://domain.com/wp"+"-content";
107-
$relate = true;
107+
$relate = $this->compress_js;
108108
}
109109
else if ( !empty($token['style']) )
110110
{
111111
$strip = $this->compress_css;
112-
$relate = true;
112+
113+
// No sense in trying to relate at this point because currently only URLs within HTML attributes are shortened
114+
//$relate = $this->compress_css;
113115
}
114116
else if ($content === '<!--wp-html-compression no compression-->')
115117
{

0 commit comments

Comments
 (0)