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.php +26 -17 3.2.3 → 4.7.0 View file →
@@ -1,45 +1,54 @@
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 <div id="wp-optimize-general-settings" class="wpo_section wpo_group">
4 4 <form action="#" method="post" enctype="multipart/form-data" name="settings_form" id="settings_form">
5 5 <div id="wpo_settings_warnings"></div>
6 6
7 + <?php WP_Optimize()->include_template('settings/settings-general.php', false, array('settings_general_data' => $settings_general_data)); ?>
8 + <?php WP_Optimize()->include_template('settings/settings-trackback-and-comments.php', false, array('settings_trackback_data' => $settings_trackback_data, 'settings_comments_data' => $settings_comments_data)); ?>
9 + <?php WP_Optimize()->include_template('settings/settings-logging.php', false, array('loggers_data' => $loggers_data)); ?>
10 + <?php WP_Optimize()->include_template('settings/settings-export-import.php'); ?>
7 11
8 - <?php WP_Optimize()->include_template('settings/settings-general.php'); ?>
9 - <?php WP_Optimize()->include_template('settings/settings-trackback-and-comments.php'); ?>
10 - <?php WP_Optimize()->include_template('settings/settings-logging.php'); ?>
11 -
12 12 <?php do_action('wpo_after_general_settings'); ?>
13 13
14 14 <div id="wp-optimize-settings-save-results"></div>
15 15
16 16 <input type="hidden" name="action" value="save_redirect">
17 -
17 +
18 18 <?php wp_nonce_field('wpo_optimization'); ?>
19 19
20 - <h3 class="wpo-first-child"><?php _e('Wipe settings', 'wp-optimize'); ?></h3>
20 + <h3 class="wpo-first-child"><?php esc_html_e('Wipe settings', 'wp-optimize'); ?></h3>
21 21
22 22 <div class="wpo-fieldgroup">
23 23 <p>
24 - <small><?php _e('This button will delete all of WP-Optimize\'s settings. You will then need to enter all your settings again. You can also do this before deactivating/deinstalling WP-Optimize if you wish.', 'wp-optimize'); ?></small>
25 - <br>
26 - <br>
24 + <small>
25 + <?php
26 + $message = __('This button will delete all of WP-Optimize\'s settings.', 'wp-optimize');
27 + $message .= ' ';
28 + $message .= __('You will then need to enter all your settings again.', 'wp-optimize');
29 + $message .= ' ';
30 + $message .= __('You can also do this before deactivating/deinstalling WP-Optimize if you wish.', 'wp-optimize');
31 + echo esc_html($message);
32 + ?>
33 + </small>
34 + </p>
35 +
36 + <div class="wpo-save-btn-container">
27 37 <input class="button wpo-wipe-settings" type="button" name="wp-optimize-wipe-settings" value="<?php esc_attr_e('Wipe settings', 'wp-optimize'); ?>" />
28 38
29 - <img class="wpo_spinner" src="<?php echo esc_attr(admin_url('images/spinner-2x.gif')); ?>" alt="...">
39 + <img class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="...">
30 40
31 41 <span class="dashicons dashicons-yes display-none save-done"></span>
32 -
33 - </p>
42 + </div>
34 43 </div>
35 44
36 - <div>
37 - <input class="button button-primary wpo-save-settings" type="submit" name="wp-optimize-settings" value="<?php esc_attr_e('Save settings', 'wp-optimize'); ?>" />
45 + <div class="wpo-save-btn-container">
46 + <input id="wp-optimize-save-main-settings" class="button button-primary wpo-save-settings" type="submit" name="wp-optimize-settings" value="<?php esc_attr_e('Save settings', 'wp-optimize'); ?>" />
38 47
39 - <img class="wpo_spinner wpo-saving-settings" src="<?php echo esc_attr(admin_url('images/spinner-2x.gif')); ?>" alt="...">
48 + <img class="wpo_spinner wpo-saving-settings" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="...">
40 49
41 50 <span class="dashicons dashicons-yes display-none save-done"></span>
42 51 </div>
43 52
44 53 </form>
45 -</div><!-- end #wp-optimize-general-settings -->
54 +</div><!-- end #wp-optimize-general-settings -->