Skip to content

Commit ffa9c25

Browse files
Use placeholders for CODE in translated string
Co-authored-by: Felix Arntz <[email protected]>
1 parent e576f73 commit ffa9c25

File tree

1 file changed

+5
-3
lines changed
  • plugins/performance-lab/includes/site-health/bfcache-compatibility-headers

1 file changed

+5
-3
lines changed

plugins/performance-lab/includes/site-health/bfcache-compatibility-headers/helper.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ function perflab_bfcache_compatibility_headers_check(): array {
7171
$result['status'] = 'recommended';
7272
$result['description'] = sprintf(
7373
'<p>%s</p>',
74-
wp_kses(
75-
__( "The <code>Cache-Control</code> response header for an unauthenticated request to the home page includes the <code>no-store</code> directive. This can affect the performance of your site by preventing fast back/forward navigations (via the browser's bfcache).", 'performance-lab' ),
76-
array( 'code' => array() )
74+
sprintf(
75+
/* translators: 1: Cache-Control, 2: no-store */
76+
esc_html__( 'The %1$s response header for an unauthenticated request to the home page includes the %2$s directive. This can affect the performance of your site by preventing fast back/forward navigations (via the browser\'s bfcache).', 'performance-lab' ),
77+
'<code>Cache-Control</code>',
78+
'<code>no-store</code>'
7779
)
7880
);
7981
break;

0 commit comments

Comments
 (0)