Skip to content

Commit

Permalink
fixes #1787
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Mar 11, 2018
1 parent 078b8d4 commit d0c7342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/css/class-kirki-css-to-file.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,16 @@ public function write_file() {
}
$css = implode( $css, '' );

// Minimize the CSS a bit.
/*
WIP: Minimize the CSS a bit. Commented-out because of https://github.com/aristath/kirki/issues/1787
$css = str_replace( array( "\n", "\t", "\r\n" ), '', $css );
$css = str_replace( array( '{ ', '{ ', '{ ' ), '{', $css );
$css = str_replace( ': ', ':', $css );
$css = str_replace( array( '; ', '; ', '; ' ), ';', $css );
$css = explode( '}', $css );
$css = array_unique( $css );
$css = implode( $css, '}' );
*/

// If the folder doesn't exist, create it.
if ( ! file_exists( $this->get_path( 'folder' ) ) ) {
Expand Down

0 comments on commit d0c7342

Please sign in to comment.