PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/core/components/user-feedback.php +14 -13 1.2.1 → trunk View file →
@@ -9,9 +9,10 @@
9 9 exit; // Exit if accessed directly.
10 10 }
11 11
12 12 class User_Feedback {
13 - public const FEEDBACK_LINK = 'https://wordpress.org/support/plugin/image-optimization/reviews/?filter=5#new-post';
13 + public const NOTICE_FEEDBACK_LINK = 'https://go.elementor.com/io-wp-dash-notice-review';
14 + public const FOOTER_FEEDBACK_LINK = 'https://go.elementor.com/io-wp-dash-footer-review';
14 15 private const FIRST_IMAGE_OPTIMIZED_FEEDBACK_SLUG = 'image-optimizer-first-image-optimized-feedback';
15 16 private const THIRD_OF_IMAGES_OPTIMIZED_FEEDBACK_SLUG = 'image-optimizer-third-images-optimized-feedback';
16 17
17 18 /**
@@ -98,17 +99,17 @@
98 99 ); ?>
99 100 </b>
100 101
101 102 <span>
102 - <?php printf(
103 + <?php echo wp_kses_post( sprintf(
103 104 __(
104 - 'If you enjoyed using Image Optimizer, consider leaving a <a href="%1$s" aria-label="%2$s" target="_blank"
105 + 'If you enjoyed using Image Optimization, consider leaving a <a href="%1$s" aria-label="%2$s" target="_blank"
105 106 rel="noopener noreferrer">★★★★★</a> review to spread the word.',
106 107 'image-optimization'
107 108 ),
108 - esc_url( self::FEEDBACK_LINK ),
109 + esc_url( self::NOTICE_FEEDBACK_LINK ),
109 110 esc_attr__( 'Five stars', 'image-optimization' )
110 - ); ?>
111 + ) ); ?>
111 112 </span>
112 113 </p>
113 114 </div>
114 115
@@ -164,23 +165,23 @@
164 165 data-notice-slug="<?php echo esc_attr( self::THIRD_OF_IMAGES_OPTIMIZED_FEEDBACK_SLUG ); ?>">
165 166 <p>
166 167 <b>
167 168 <?php esc_html_e(
168 - 'Thanks for using Image Optimizer!',
169 + 'Thanks for using Image Optimization!',
169 170 'image-optimization'
170 171 ); ?>
171 172 </b>
172 173
173 174 <span>
174 - <?php printf(
175 + <?php echo wp_kses_post( sprintf(
175 176 __(
176 177 'If you\'ve enjoyed it, consider leaving a <a href="%1$s" aria-label="%2$s" target="_blank"
177 178 rel="noopener noreferrer">★★★★★</a> review to spread the word.',
178 179 'image-optimization'
179 180 ),
180 - esc_url( self::FEEDBACK_LINK ),
181 + esc_url( self::NOTICE_FEEDBACK_LINK ),
181 182 esc_attr__( 'Five stars', 'image-optimization' )
182 - ); ?>
183 + ) ); ?>
183 184 </span>
184 185 </p>
185 186 </div>
186 187
@@ -230,16 +231,16 @@
230 231 *
231 232 * @return void
232 233 */
233 234 public function add_leave_feedback_footer_text(): void {
234 - printf(
235 - __( '<b>Found Image Optimizer helpful?</b> Leave us a <a href="%1$s" aria-label="%2$s" target="_blank"
235 + echo wp_kses_post( sprintf(
236 + __( '<b>Found Image Optimization helpful?</b> Leave us a <a href="%1$s" aria-label="%2$s" target="_blank"
236 237 rel="noopener noreferrer">★★★★★</a> rating!',
237 238 'image-optimization'
238 239 ),
239 - esc_url( self::FEEDBACK_LINK ),
240 + esc_url( self::FOOTER_FEEDBACK_LINK ),
240 241 esc_attr__( 'Five stars', 'image-optimization' )
241 - );
242 + ) );
242 243 }
243 244
244 245 public function __construct() {
245 246 add_action('current_screen', function () {