PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | modules/widgets/eu-cookie-law/form.php +10 -4 12.2.3 → 16.3-a.1 View file →
@@ -1,14 +1,20 @@
1 1 <?php
2 2 /**
3 3 * EU Cookie Law Widget form.
4 4 *
5 + * @html-template Jetpack_EU_Cookie_Law_Widget::form
5 6 * @package automattic/jetpack
6 7 */
7 8
8 9 use Automattic\Jetpack\Redirect;
9 10
10 -// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
11 +if ( ! defined( 'ABSPATH' ) ) {
12 + exit( 0 );
13 +}
14 +
15 +// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it.
16 +
11 17 ?>
12 18 <p>
13 19 <strong>
14 20 <?php esc_html_e( 'Banner text', 'jetpack' ); ?>
@@ -90,9 +96,9 @@
90 96 <span class="notice notice-warning custom-policy" style="display: none;">
91 97 <span style="display: block; margin: .5em 0;">
92 98 <strong><?php esc_html_e( 'Caution:', 'jetpack' ); ?></strong>
93 99 <?php
94 - echo sprintf(
100 + printf(
95 101 wp_kses(
96 102 /* Translators: %s is the URL to a Jetpack support article. */
97 103 __( 'For GDPR compliance, please make sure your policy contains <a href="%s" target="_blank">privacy information relating to WordAds</a>.', 'jetpack' ),
98 104 array(
@@ -145,9 +151,9 @@
145 151 <hr />
146 152
147 153 <p>
148 154 <strong>
149 - <?php esc_html_x( 'Capture consent & hide the banner', 'action', 'jetpack' ); ?>
155 + <?php echo esc_html_x( 'Capture consent & hide the banner', 'action', 'jetpack' ); ?>
150 156 </strong>
151 157 <ul>
152 158 <li>
153 159 <label>
@@ -207,9 +213,9 @@
207 213 <hr />
208 214
209 215 <p>
210 216 <strong>
211 - <?php esc_html_x( 'Consent expires after', 'action', 'jetpack' ); ?>
217 + <?php echo esc_html_x( 'Consent expires after', 'action', 'jetpack' ); ?>
212 218 </strong>
213 219 <ul>
214 220 <li>
215 221 <input