WordPress.org

Support

Support » Plugins and Hacks » Improved Simpler CSS » [Plugin: Improved Simpler CSS] can crash php running under apache on windows

[Plugin: Improved Simpler CSS] can crash php running under apache on windows

Viewing 1 replies (of 1 total)
  • This replacement function seems to work under XAMPP for windows. It doesn’t do as much optimizing but I don’t think it screws up anything.

    function improved_simpler_css_filter($_content) {
    	$_return = $_content;
    	$_return = preg_replace ( '/@import.+;/i', '', $_return ); // rem import stmts
    	$_return = preg_replace ( '/(\t|\n)/', '', $_return ); // rem tabs & linebreaks
    	$_return = preg_replace ( '#/\*.+?\*/#s', '', $_return ); // rem comments
    	$_return = htmlspecialchars ( strip_tags($_return), ENT_NOQUOTES, 'UTF-8' );
    	return $_return;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Improved Simpler CSS] can crash php running under apache on windows’ is closed to new replies.
Skip to toolbar