Skip to content

Commit

Permalink
exclude wp-c/cache and wp-c/uploads as some major themes save page-sp…
Browse files Browse the repository at this point in the history
…ecific CSS there
  • Loading branch information
futtta committed Feb 13, 2018
1 parent d72b5a8 commit 3733a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/autoptimizeConfig.php
Expand Up @@ -285,7 +285,7 @@ public function show() {
</tr>
<tr valign="top" class="<?php echo $hiddenClass;?>ao_adv css_sub">
<th scope="row"><?php _e('Exclude CSS from Autoptimize:','autoptimize'); ?></th>
<td><label><input type="text" style="width:100%;" name="autoptimize_css_exclude" value="<?php echo get_option('autoptimize_css_exclude','admin-bar.min.css, dashicons.min.css'); ?>"/><br />
<td><label><input type="text" style="width:100%;" name="autoptimize_css_exclude" value="<?php echo get_option('autoptimize_css_exclude','wp-content/cache/, wp-content/uploads/, admin-bar.min.css, dashicons.min.css'); ?>"/><br />
<?php _e('A comma-separated list of CSS you want to exclude from being optimized.','autoptimize'); ?></label></td>
</tr>
</table>
Expand Down Expand Up @@ -622,7 +622,7 @@ public function get($key) {
'autoptimize_js_include_inline' => 0,
'autoptimize_js_forcehead' => 0,
'autoptimize_css' => 0,
'autoptimize_css_exclude' => "admin-bar.min.css, dashicons.min.css",
'autoptimize_css_exclude' => "admin-bar.min.css, dashicons.min.css, wp-content/cache/, wp-content/uploads/",
'autoptimize_css_justhead' => 0,
'autoptimize_css_include_inline' => 1,
'autoptimize_css_defer' => 0,
Expand Down

0 comments on commit 3733a73

Please sign in to comment.