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/cache/browser-cache.php +14 -4 4.5.2 → 4.7.0 View file →
@@ -52,11 +52,11 @@
52 52 ?>
53 53 <form>
54 54 <input type="hidden" id="wpo_enable_browser_cache" class="cache-settings" name="enable_browser_cache" value="<?php echo $wpo_browser_cache_enabled ? 'true' : 'false'; ?>" />
55 55 <label><?php esc_html_e('Expiration time:', 'wp-optimize'); ?></label>
56 - <input id="wpo_browser_cache_expire_days" class="cache-settings" type="number" min="0" step="1" name="browser_cache_expire_days" value="<?php echo esc_attr($wpo_browser_cache_expire_days); ?>">
56 + <input id="wpo_browser_cache_expire_days" class="cache-settings wpo_browser_cache_input" type="number" min="0" step="1" name="browser_cache_expire_days" value="<?php echo esc_attr($wpo_browser_cache_expire_days); ?>">
57 57 <label for="wpo_browser_cache_expire_days"><?php esc_html_e('day(s)', 'wp-optimize'); ?></label>
58 - <input id="wpo_browser_cache_expire_hours" class="cache-settings" type="number" min="0" step="1" name="browser_cache_expire_hours" value="<?php echo esc_attr($wpo_browser_cache_expire_hours); ?>">
58 + <input id="wpo_browser_cache_expire_hours" class="cache-settings wpo_browser_cache_input" type="number" min="0" step="1" name="browser_cache_expire_hours" value="<?php echo esc_attr($wpo_browser_cache_expire_hours); ?>">
59 59 <label for="wpo_browser_cache_expire_hours"><?php esc_html_e('hour(s)', 'wp-optimize'); ?></label>
60 60 <button class="button-primary" type="button" id="wp_optimize_browser_cache_enable"><?php echo esc_html($button_text); ?></button>
61 61 <img class="wpo_spinner display-none" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>"
62 62 width="20" height="20" alt="...">
@@ -86,10 +86,20 @@
86 86 </div>
87 87 <?php
88 88 }
89 89 ?></div>
90 - <div id="wpo_browser_cache_error_message" class="notice notice-error" style="display: none;"></div>
91 - <pre id="wpo_browser_cache_output" style="display: none;"></pre>
90 +
91 + <?php if ('' !== $wpo_browser_cache_error_message) { ?>
92 + <div id="wpo_browser_cache_error_message" class="notice notice-error"><?php echo esc_html($wpo_browser_cache_error_message); ?></div>
93 + <?php } else { ?>
94 + <div id="wpo_browser_cache_error_message" class="notice notice-error" style="display: none;"></div>
95 + <?php } ?>
96 +
97 + <?php if ('' !== $wpo_browser_cache_output) { ?>
98 + <pre id="wpo_browser_cache_output"><?php echo esc_html($wpo_browser_cache_output); ?></pre>
99 + <?php } else { ?>
100 + <pre id="wpo_browser_cache_output" style="display: none;"></pre>
101 + <?php } ?>
92 102 <?php
93 103 }
94 104 }
95 105