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/settings/settings-general.php +7 -5 3.3.2 → 4.7.0 View file →
@@ -1,21 +1,23 @@
1 -<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
1 +<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
2 2
3 3 <h3 class="wpo-first-child"><?php esc_html_e('General settings', 'wp-optimize'); ?></h3>
4 4 <div class="wpo-fieldgroup">
5 5 <p>
6 6 <label>
7 - <input name="enable-admin-bar" id="enable-admin-bar" type="checkbox" value ="true" <?php echo ($options->get_option('enable-admin-menu', 'false') == 'true') ? 'checked="checked"' : ''; ?> />
7 + <input name="enable-admin-bar" id="enable-admin-bar" type="checkbox" value ="true" <?php echo ($options->get_option('enable-admin-menu', 'false') === 'true') ? 'checked="checked"' : ''; ?> />
8 8 <?php esc_html_e('Enable admin bar menu', 'wp-optimize'); ?>
9 9 </label>
10 10 <br>
11 11 <small><?php esc_html_e('This option will add a link labeled "WP-Optimize" in the top admin bar, for easy access to the different features.', 'wp-optimize'); ?> <?php esc_html_e('Requires a page refresh after saving the settings.', 'wp-optimize'); ?></small>
12 12 </p>
13 - <p>
13 +
14 + <p id="enable_cache_in_admin_bar_option" class="<?php echo $settings_general_data['minify_or_cache_enabled'] ? '' : 'wpo_hidden'; ?>">
14 15 <label>
15 16 <input name="enable_cache_in_admin_bar" id="enable-cache-admin-bar" type="checkbox" value ="1" <?php checked($options->get_option('enable_cache_in_admin_bar', true)); ?> />
16 17 <?php esc_html_e('Enable the caching menu in the admin bar', 'wp-optimize'); ?>
17 18 </label>
18 19 <br>
19 - <small><?php esc_html_e('This option will add a caching menu on the top admin bar.', 'wp-optimize'); ?> <?php esc_html_e('Requires a page refresh after saving the settings.', 'wp-optimize'); ?></small>
20 + <small><?php esc_html_e('This option will add a caching menu on the top admin bar.', 'wp-optimize'); ?> <?php esc_html_e('The admin bar menu is displayed only if Cache or Minify is enabled.', 'wp-optimize'); ?> <?php esc_html_e('Requires a page refresh after saving the settings.', 'wp-optimize'); ?></small>
20 21 </p>
21 -</div>
22 +
23 +</div>