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/images/unused.php +16 -11 3.2.3 → 4.7.0 View file →
@@ -1,8 +1,8 @@
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 class="wpo-unused-images-section">
4 - <h3 class="wpo-first-child"><?php _e('Unused images', 'wp-optimize');?></h3>
4 + <h3 class="wpo-first-child"><?php esc_html_e('Unused images', 'wp-optimize');?></h3>
5 5 <div id="wpo_unused_images">
6 6 <?php for ($i=0; $i < 10; $i++) : ?>
7 7 <div class="wpo_unused_image">
8 8 <label class="wpo_unused_image_thumb_label">
@@ -12,18 +12,23 @@
12 12 </label>
13 13 </div>
14 14 <?php endfor; ?>
15 15 <div class="wpo-unused-images__premium-mask">
16 - <a class="wpo-unused-images__premium-link" href="<?php esc_attr_e($wp_optimize->premium_version_link); ?>" target="_blank"><?php _e('Manage unused images with WP-Optimize Premium.', 'wp-optimize'); ?></a>
16 + <a class="wpo-unused-images__premium-link" href="<?php echo esc_url($wp_optimize->premium_version_link);?>&utm_content=manage-unused-images" target="_blank"><?php esc_html_e('Manage unused images with WP-Optimize Premium.', 'wp-optimize'); ?></a>
17 17 </div>
18 18 </div>
19 19 </div>
20 20
21 21 <div class="wpo-image-sizes-section">
22 - <h3><?php _e('Image sizes', 'wp-optimize'); ?></h3>
22 + <h3><?php esc_html_e('Image sizes', 'wp-optimize'); ?></h3>
23 23 <div class="wpo-fieldgroup premium-only">
24 - <h3><?php _e('Registered image sizes', 'wp-optimize'); ?></h3>
25 - <p class="red"><?php _e("This feature is for experienced users. Don't remove registered image sizes if you are not sure that images with selected sizes are not used on your site.", 'wp-optimize'); ?></p>
24 + <h3><?php esc_html_e('Registered image sizes', 'wp-optimize'); ?></h3>
25 + <?php
26 + $message = __('This feature is for experienced users.', 'wp-optimize');
27 + $message .= ' ';
28 + $message .= __("Don't remove registered image sizes if you are not sure that images with selected sizes are not used on your site.", 'wp-optimize');
29 + ?>
30 + <p class="red"><?php echo esc_html($message); ?></p>
26 31 <div id="registered_image_sizes">
27 32 <label class="unused-image-sizes__label">
28 33 <input type="checkbox" class="unused-image-sizes">registered-image-size (42.2 KB - Total: 3)<br>
29 34 </label>
@@ -33,12 +38,12 @@
33 38 <label class="unused-image-sizes__label">
34 39 <input type="checkbox" class="unused-image-sizes">registered-image-size (42.2 KB - Total: 3)<br>
35 40 </label>
36 41 </div>
37 - <h3><?php _e('Unused image sizes', 'wp-optimize');?></h3>
42 + <h3><?php esc_html_e('Unused image sizes', 'wp-optimize');?></h3>
38 43 <p class="hide_on_empty">
39 - <?php _e('These image sizes were used by some of the themes or plugins installed previously and they remain within your database.', 'wp-optimize'); ?>
40 - <a href="https://codex.wordpress.org/Post_Thumbnails#Add_New_Post_Thumbnail_Sizes" target="_blank"><?php _e('Read more about custom image sizes here.', 'wp-optimize'); ?></a>
44 + <?php esc_html_e('These image sizes were used by some of the themes or plugins installed previously and they remain within your database.', 'wp-optimize'); ?>
45 + <?php $wp_optimize->wp_optimize_url('https://codex.wordpress.org/Post_Thumbnails#Add_New_Post_Thumbnail_Sizes', __('Read more about custom image sizes here.', 'wp-optimize')); ?>
41 46 </p>
42 47 <div id="unused_image_sizes">
43 48 <label class="unused-image-sizes__label">
44 49 <input type="checkbox" class="unused-image-sizes">unused-image-size (42.2 KB - Total: 3)<br>
@@ -50,11 +55,11 @@
50 55 <input type="checkbox" class="unused-image-sizes">unused-image-size (42.2 KB - Total: 3)<br>
51 56 </label>
52 57 </div>
53 58 <div class="wpo_remove_selected_sizes_btn__container">
54 - <button type="buton" class="button button-primary" disabled="disabled"><?php _e('Remove selected sizes', 'wp-optimize'); ?></button>
59 + <button type="button" class="button button-primary" disabled="disabled"><?php esc_html_e('Remove selected sizes', 'wp-optimize'); ?></button>
55 60 </div>
56 61 <div class="wpo-unused-image-sizes__premium-mask">
57 - <a class="wpo-unused-images__premium-link" href="<?php esc_attr_e($wp_optimize->premium_version_link); ?>" target="_blank"><?php _e('Take control of WordPress image sizes with WP-Optimize Premium.', 'wp-optimize'); ?></a>
62 + <a class="wpo-unused-images__premium-link" href="<?php echo esc_url($wp_optimize->premium_version_link);?>&utm_content=take-control-image-sizes" target="_blank"><?php esc_html_e('Take control of WordPress image sizes with WP-Optimize Premium.', 'wp-optimize'); ?></a>
58 63 </div>
59 64 </div>
60 65 </div>