Forked from glueckpress/wp-rocket-disable-inline-css-minify.php
Created
July 15, 2019 07:54
-
-
Save mihdan/81a4733c45aa2ec190eb4e1b5f19c07f to your computer and use it in GitHub Desktop.
[WordPress][WP Rocket] Disable minification of inline CSS when Minify HTML is enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Disables Minify for inline CSS. | |
| * https://github.com/wp-media/wp-rocket/blob/v2.11.3/inc/front/minify.php#L72 | |
| */ | |
| add_filter( 'rocket_minify_html_options', function ( $html_options ) { | |
| $html_options = array(); | |
| return $html_options; | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment