PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | views/notice-rating.php +17 -11 1.10 → trunk View file →
@@ -1,19 +1,22 @@
1 1 <?php
2 -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
2 +defined( 'ABSPATH' ) || exit;
3 3
4 -$this->print_template( 'notice-header', array(
5 - 'classes' => array( 'updated' ),
6 -) );
4 +$this->print_template(
5 + 'notice-header',
6 + [
7 + 'classes' => [ 'updated', 'imagify-notice-rating' ],
8 + ]
9 +);
7 10 ?>
8 11 <p>
9 12 <?php
10 13 printf(
11 14 /* translators: 1 is a "bold" tag start, 2 is the "bold" tag end, 3 is a formatted number (don't use %3$d). */
12 - __( '%1$sCongratulations%2$s, you have optimized %1$s%3$s images%2$s and improved your website\'s speed by reducing your images size.', 'imagify' ),
15 + esc_html__( '%1$sCongratulations%2$s, you have optimized %1$s%3$s images%2$s and improved your website\'s speed by reducing your images size.', 'imagify' ),
13 16 '<strong>',
14 17 '</strong>',
15 - number_format_i18n( $data )
18 + esc_html( number_format_i18n( $data ) )
16 19 );
17 20 ?>
18 21 </p>
19 22 <p class="imagify-rate-us">
@@ -19,9 +22,9 @@
19 22 <p class="imagify-rate-us">
20 23 <?php
21 24 printf(
22 25 /* translators: 1 is a "bold" tag start, 2 is the "bold" tag end + a line break tag, 3 is a link tag start, 4 is the link tag end. */
23 - __( '%1$sDo you like this plugin?%2$s Please take a few seconds to %3$srate it on WordPress.org%4$s!', 'imagify' ),
26 + esc_html__( '%1$sDo you like this plugin?%2$s Please take a few seconds to %3$srate it on WordPress.org%4$s!', 'imagify' ),
24 27 '<strong>',
25 28 '</strong><br />',
26 29 '<a target="_blank" href="' . esc_url( imagify_get_external_url( 'rate' ) ) . '">',
27 30 '</a>'
@@ -27,10 +30,13 @@
27 30 '</a>'
28 31 );
29 32 ?>
30 33 <br>
31 - <a class="stars" target="_blank" href="<?php echo esc_url( imagify_get_external_url( 'rate' ) ); ?>">☆☆☆☆☆</a>
34 + <a class="stars" aria-hidden="true" target="_blank" href="<?php echo esc_url( imagify_get_external_url( 'rate' ) ); ?>"><?php echo str_repeat( '<span class="dashicons dashicons-star-filled"></span>', 5 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></a>
32 35 </p>
33 36 <?php
34 -$this->print_template( 'notice-footer', array(
35 - 'dismissible' => 'rating',
36 -) );
37 +$this->print_template(
38 + 'notice-footer',
39 + [
40 + 'dismissible' => 'rating',
41 + ]
42 +);