PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | templates/minify/css-settings-tab.php +2 -1 4.6.1 → 4.7.0 View file →
@@ -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">