PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.1
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.1
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
← All changes | includes/Services/ReviewNoticeService.php +12 -12 2.2.02.4.1 View file →
@@ -41,11 +41,11 @@
41 41 */
42 42 const RESHOW_AFTER_DAYS = 7;
43 43
44 44 /**
45 - * WordPress.org review URL (5-star reviews page)
45 + * WordPress.org review URL
46 46 */
47 - const REVIEW_URL = 'https://wordpress.org/support/plugin/easy-invoice/reviews/?filter=5';
47 + const REVIEW_URL = 'https://wordpress.org/support/plugin/easy-invoice/reviews/#new-post';
48 48
49 49 /**
50 50 * Initialize the review notice service
51 51 */
@@ -185,9 +185,9 @@
185 185 <div class="easy-invoice-review-notice-content" style="display: flex; align-items: center; gap: 15px; padding: 10px 0;">
186 186 <div style="flex: 1;">
187 187 <p style="margin: 0; font-size: 14px;">
188 188 <strong><?php esc_html_e('Enjoying Easy Invoice?', 'easy-invoice'); ?></strong>
189 - <?php esc_html_e('If you find Easy Invoice helpful, would you mind taking a moment to leave us a 5-star review? It really helps us grow and improve!', 'easy-invoice'); ?>
189 + <?php esc_html_e('If you find Easy Invoice helpful, would you mind taking a moment to leave us a review on WordPress.org? It really helps us grow and improve!', 'easy-invoice'); ?>
190 190 </p>
191 191 </div>
192 192 <div style="display: flex; gap: 10px; align-items: center; flex-wrap: wrap;">
193 193 <a href="<?php echo esc_url(self::REVIEW_URL); ?>"
@@ -193,9 +193,9 @@
193 193 <a href="<?php echo esc_url(self::REVIEW_URL); ?>"
194 194 target="_blank"
195 195 rel="noopener noreferrer"
196 196 class="button button-primary easy-invoice-leave-review"
197 - aria-label="<?php esc_attr_e('Leave a 5-star review on WordPress.org', 'easy-invoice'); ?>"
197 + aria-label="<?php esc_attr_e('Leave a review on WordPress.org', 'easy-invoice'); ?>"
198 198 style="margin-right: 5px;">
199 199 <?php esc_html_e('Leave a Review', 'easy-invoice'); ?>
200 200 </a>
201 201 <button type="button"
@@ -238,9 +238,9 @@
238 238 url: ajaxurl || '<?php echo esc_js(admin_url('admin-ajax.php')); ?>',
239 239 type: 'POST',
240 240 data: {
241 241 action: 'easy_invoice_skip_review_notice',
242 - nonce: '<?php echo wp_create_nonce('easy_invoice_skip_review_notice'); ?>'
242 + nonce: '<?php echo esc_attr(wp_create_nonce('easy_invoice_skip_review_notice')); ?>'
243 243 },
244 244 error: function() {
245 245 $link.prop('disabled', false).css('opacity', '1').css('pointer-events', 'auto');
246 246 }
@@ -270,9 +270,9 @@
270 270 url: ajaxurl || '<?php echo esc_js(admin_url('admin-ajax.php')); ?>',
271 271 type: 'POST',
272 272 data: {
273 273 action: 'easy_invoice_skip_review_notice',
274 - nonce: '<?php echo wp_create_nonce('easy_invoice_skip_review_notice'); ?>'
274 + nonce: '<?php echo esc_attr(wp_create_nonce('easy_invoice_skip_review_notice')); ?>'
275 275 },
276 276 success: function() {
277 277 $adminNotice.fadeOut(300, function() {
278 278 $(this).remove();
@@ -301,9 +301,9 @@
301 301 url: ajaxurl || '<?php echo esc_js(admin_url('admin-ajax.php')); ?>',
302 302 type: 'POST',
303 303 data: {
304 304 action: 'easy_invoice_dismiss_review_notice',
305 - nonce: '<?php echo wp_create_nonce('easy_invoice_dismiss_review_notice'); ?>'
305 + nonce: '<?php echo esc_attr(wp_create_nonce('easy_invoice_dismiss_review_notice')); ?>'
306 306 },
307 307 success: function() {
308 308 $adminNotice.fadeOut(300, function() {
309 309 $(this).remove();
@@ -336,9 +336,9 @@
336 336 <?php esc_html_e('Enjoying Easy Invoice?', 'easy-invoice'); ?>
337 337 </h3>
338 338 </div>
339 339 <p style="margin: 0; font-size: 14px; opacity: 0.95;">
340 - <?php esc_html_e('If you find Easy Invoice helpful, would you mind taking a moment to leave us a 5-star review? It really helps us grow and improve!', 'easy-invoice'); ?>
340 + <?php esc_html_e('If you find Easy Invoice helpful, would you mind taking a moment to leave us a review on WordPress.org? It really helps us grow and improve!', 'easy-invoice'); ?>
341 341 </p>
342 342 </div>
343 343 <div style="display: flex; gap: 12px; align-items: center; flex-shrink: 0; flex-wrap: wrap;">
344 344 <a href="<?php echo esc_url(self::REVIEW_URL); ?>"
@@ -344,9 +344,9 @@
344 344 <a href="<?php echo esc_url(self::REVIEW_URL); ?>"
345 345 target="_blank"
346 346 rel="noopener noreferrer"
347 347 class="easy-invoice-leave-review-custom easy-invoice-review-btn"
348 - aria-label="<?php esc_attr_e('Leave a 5-star review on WordPress.org', 'easy-invoice'); ?>"
348 + aria-label="<?php esc_attr_e('Leave a review on WordPress.org', 'easy-invoice'); ?>"
349 349 style="background: white; color: #667eea; border: none; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: transform 0.2s ease, box-shadow 0.2s ease; display: inline-block;">
350 350 <?php esc_html_e('Leave a Review', 'easy-invoice'); ?>
351 351 <span style="margin-left: 6px;" aria-hidden="true">→</span>
352 352 </a>
@@ -416,9 +416,9 @@
416 416 url: ajaxurl || '<?php echo esc_js(admin_url('admin-ajax.php')); ?>',
417 417 type: 'POST',
418 418 data: {
419 419 action: 'easy_invoice_skip_review_notice',
420 - nonce: '<?php echo wp_create_nonce('easy_invoice_skip_review_notice'); ?>'
420 + nonce: '<?php echo esc_attr(wp_create_nonce('easy_invoice_skip_review_notice')); ?>'
421 421 },
422 422 error: function() {
423 423 $link.prop('disabled', false).css('opacity', '1').css('pointer-events', 'auto');
424 424 }
@@ -448,9 +448,9 @@
448 448 url: ajaxurl || '<?php echo esc_js(admin_url('admin-ajax.php')); ?>',
449 449 type: 'POST',
450 450 data: {
451 451 action: 'easy_invoice_skip_review_notice',
452 - nonce: '<?php echo wp_create_nonce('easy_invoice_skip_review_notice'); ?>'
452 + nonce: '<?php echo esc_attr(wp_create_nonce('easy_invoice_skip_review_notice')); ?>'
453 453 },
454 454 success: function() {
455 455 $customNotice.fadeOut(300, function() {
456 456 $(this).remove();
@@ -479,9 +479,9 @@
479 479 url: ajaxurl || '<?php echo esc_js(admin_url('admin-ajax.php')); ?>',
480 480 type: 'POST',
481 481 data: {
482 482 action: 'easy_invoice_dismiss_review_notice',
483 - nonce: '<?php echo wp_create_nonce('easy_invoice_dismiss_review_notice'); ?>'
483 + nonce: '<?php echo esc_attr(wp_create_nonce('easy_invoice_dismiss_review_notice')); ?>'
484 484 },
485 485 success: function() {
486 486 $customNotice.fadeOut(300, function() {
487 487 $(this).remove();