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 +19 -20 3.2.22 → 4.7.0 View file →
@@ -1,14 +1,13 @@
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 -
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'); ?>
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)); ?>
11 10 <?php WP_Optimize()->include_template('settings/settings-export-import.php'); ?>
12 11
13 12 <?php do_action('wpo_after_general_settings'); ?>
14 13
@@ -14,9 +13,9 @@
14 13
15 14 <div id="wp-optimize-settings-save-results"></div>
16 15
17 16 <input type="hidden" name="action" value="save_redirect">
18 -
17 +
19 18 <?php wp_nonce_field('wpo_optimization'); ?>
20 19
21 20 <h3 class="wpo-first-child"><?php esc_html_e('Wipe settings', 'wp-optimize'); ?></h3>
22 21
@@ -23,33 +22,33 @@
23 22 <div class="wpo-fieldgroup">
24 23 <p>
25 24 <small>
26 25 <?php
27 - $message = __('This button will delete all of WP-Optimize\'s settings.', 'wp-optimize');
28 - $message .= ' ';
29 - $message .= __('You will then need to enter all your settings again.', 'wp-optimize');
30 - $message .= ' ';
31 - $message .= __('You can also do this before deactivating/deinstalling WP-Optimize if you wish.', 'wp-optimize');
32 - echo esc_html($message);
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);
33 32 ?>
34 33 </small>
35 - <br>
36 - <br>
34 + </p>
35 +
36 + <div class="wpo-save-btn-container">
37 37 <input class="button wpo-wipe-settings" type="button" name="wp-optimize-wipe-settings" value="<?php esc_attr_e('Wipe settings', 'wp-optimize'); ?>" />
38 38
39 - <img class="wpo_spinner" src="<?php echo esc_url(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="...">
40 40
41 41 <span class="dashicons dashicons-yes display-none save-done"></span>
42 -
43 - </p>
42 + </div>
44 43 </div>
45 44
46 - <div>
45 + <div class="wpo-save-btn-container">
47 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'); ?>" />
48 47
49 - <img class="wpo_spinner wpo-saving-settings" src="<?php echo esc_url(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="...">
50 49
51 50 <span class="dashicons dashicons-yes display-none save-done"></span>
52 51 </div>
53 52
54 53 </form>
55 -</div><!-- end #wp-optimize-general-settings -->
54 +</div><!-- end #wp-optimize-general-settings -->