Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14094

futtta on "[Plugin: Autoptimize] Confict with Dynamic To Top"

$
0
0

If you can open up wp-content/plugins/autoptimize/classes/autoptimizeStyles.php and on line 271 replace

//Minify
if (class_exists('Minify_CSS_Compressor')) {
	// legacy
	$tmp_code = trim(Minify_CSS_Compressor::process($code));
} else if(class_exists('CSSmin')) {
	$cssmin = new CSSmin();
	$tmp_code = trim($cssmin->run($code));
}

with:

//Minify
if (class_exists('Minify_CSS_Compressor')) {
	// legacy
	$tmp_code = trim(Minify_CSS_Compressor::process($code));
} else if(class_exists('CSSmin')) {
	$cssmin = new CSSmin();
	if (method_exists($cssmin->run)) {
		$tmp_code = trim($cssmin->run($code));
	}
}

This should fix the "white page of death issue" that was due to a CSS minifier conflict.

If this is confirmed to be working, I'll add it to 1.8.2 which should be out later this month.


Viewing all articles
Browse latest Browse all 14094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>