You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$new_tab_message = '<span class="screen-reader-text">' . esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' ) . '</span>'
110
+
$new_tab_message = sprintf(
111
+
'<span class="screen-reader-text">%1$s</span>',
112
+
esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' )
113
+
);
111
114
112
115
?>
113
116
@@ -120,8 +123,9 @@
120
123
<h2>
121
124
<?php
122
125
printf(
123
-
/* translators: %1$s expands to Yoast SEO Premium */
126
+
/* translators: 1: expands to Yoast SEO Premium */
124
127
esc_html__( '%1$s, take your optimization to the next level!', 'wordpress-seo' ),
128
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
/* translators: %s expands to the extension title */
161
-
printf( esc_html__( 'Manage your %s subscription on MyYoast', 'wordpress-seo' ), $premium_extension->get_title() );
164
+
printf(
165
+
/* translators: %s expands to the extension title */
166
+
esc_html__( 'Manage your %s subscription on MyYoast', 'wordpress-seo' ),
167
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
168
+
$premium_extension->get_title()
169
+
);
170
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
/* translators: %s expands to the extension title */
171
-
printf( esc_html__( 'Activate %s for your site on MyYoast', 'wordpress-seo' ), $premium_extension->get_title() );
179
+
printf(
180
+
/* translators: %s expands to the extension title */
181
+
esc_html__( 'Activate %s for your site on MyYoast', 'wordpress-seo' ),
182
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
183
+
$premium_extension->get_title()
184
+
);
185
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
/* translators: $s expands to Yoast SEO Premium */
198
+
esc_html__( 'Buy %s', 'wordpress-seo' ),
199
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
200
+
$premium_extension->get_title()
201
+
);
202
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
/* translators: Text between %1$s and %2$s will only be shown to screen readers. %3$s expands to the product name. */
212
+
/* translators: Text between 1: and 2: will only be shown to screen readers. 3: expands to the product name. */
194
213
esc_html__( 'More information %1$sabout %3$s%2$s', 'wordpress-seo' ),
195
214
'<span class="screen-reader-text">',
196
215
'</span>',
216
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
197
217
$premium_extension->get_title()
198
218
);
219
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
/* translators: %s expands to the extension title */
245
-
printf( esc_html__( 'Manage your %s subscription on MyYoast', 'wordpress-seo' ), $extension->get_title() );
269
+
printf(
270
+
/* translators: %s expands to the extension title */
271
+
esc_html__( 'Manage your %s subscription on MyYoast', 'wordpress-seo' ),
272
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
273
+
$extension->get_title()
274
+
);
275
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
/* translators: %s expands to the extension title */
255
-
printf( esc_html__( 'Activate %s for your site on MyYoast', 'wordpress-seo' ), $extension->get_title() );
284
+
printf(
285
+
/* translators: %s expands to the extension title */
286
+
esc_html__( 'Activate %s for your site on MyYoast', 'wordpress-seo' ),
287
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
288
+
$extension->get_title()
289
+
);
290
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The possible `get_buy_button` values are hardcoded (buy_button or title); only passed through the WPSEO_Extensions class.
303
+
$extension->get_buy_button()
304
+
);
305
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
/* translators: Text between %1$s and %2$s will only be shown to screen readers. %3$s expands to the product name. */
315
+
/* translators: Text between 1: and 2: will only be shown to screen readers. 3: expands to the product name. */
276
316
esc_html__( 'More information %1$sabout %3$s%2$s', 'wordpress-seo' ),
277
317
'<span class="screen-reader-text">',
278
318
'</span>',
319
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
279
320
$extension->get_title()
280
321
);
322
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
$key, // Suffix-ID for the error message box. WordPress prepends `setting-error-`.
311
-
/* translators: 1: Verification string from user input; 2: Service name. */
312
-
sprintf( __( '%1$s does not seem to be a valid %2$s verification string. Please correct.', 'wordpress-seo' ), '<strong>' . esc_html( $meta ) . '</strong>', $service ), // The error message.
313
-
'notice-error'// CSS class for the WP notice, either the legacy 'error' / 'updated' or the new `notice-*` ones.
314
-
);
308
+
309
+
if ( function_exists( 'add_settings_error' ) ) {
310
+
add_settings_error(
311
+
$this->group_name, // Slug title of the setting.
312
+
$key, // Suffix-ID for the error message box. WordPress prepends `setting-error-`.
313
+
/* translators: 1: Verification string from user input; 2: Service name. */
314
+
sprintf( __( '%1$s does not seem to be a valid %2$s verification string. Please correct.', 'wordpress-seo' ), '<strong>' . esc_html( $meta ) . '</strong>', $service ), // The error message.
315
+
'notice-error'// CSS class for the WP notice, either the legacy 'error' / 'updated' or the new `notice-*` ones.
0 commit comments