| @@ -31,11 +31,12 @@ | ||
| 31 | 31 | type="checkbox" |
| 32 | 32 | id="enable_unused_css" |
| 33 | 33 | value="1" |
| 34 | 34 | <?php checked($wpo_minify_options['enable_unused_css']); ?> |
| 35 | - <?php disabled($show_unused_css_advertise); ?> | |
| 35 | + <?php disabled($show_unused_css_advertise || !$is_page_cache_enabled); ?> | |
| 36 | 36 | > |
| 37 | 37 | <?php esc_html_e('Enable removal of unused rules from CSS files (Experimental)', 'wp-optimize'); ?> |
| 38 | + <em class="<?php if ($is_page_cache_enabled || $show_unused_css_advertise) echo esc_attr('wpo_hidden'); ?>"><?php esc_html_e('This option is available only when page cache is enabled.', 'wp-optimize'); ?></em> | |
| 38 | 39 | </label> |
| 39 | 40 | <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('If some of the design is breaking on the frontend, disabling removal of unused CSS rules might fix the issues.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> |
| 40 | 41 | <?php if ($show_unused_css_advertise) : ?> |
| 41 | 42 | <div class="wpo-inline-advertise"> |