Skip to content

Commit f82cca9

Browse files
Remove blockquote
Co-authored-by: felixarntz <[email protected]>
1 parent c9a7134 commit f82cca9

File tree

1 file changed

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

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ function perflab_bfcache_compatibility_headers_check(): array {
4646
$result['status'] = 'recommended';
4747
$result['description'] = '<p>' . wp_kses(
4848
sprintf(
49-
/* translators: %s is the error code */
50-
__( 'The request to check the Cache-Control response header responded with error code <code>%s</code> and the following error message:', 'performance-lab' ),
51-
esc_html( (string) $response->get_error_code() )
49+
/* translators: 1: the error code, 2: the error message */
50+
__( 'The request to check the Cache-Control response header responded with error code <code>%1$s</code> and the following error message: %2$s.', 'performance-lab' ),
51+
esc_html( (string) $response->get_error_code() ),
52+
esc_html( rtrim( $response->get_error_message(), '.' ) )
5253
),
5354
array( 'code' => array() )
54-
) . '</p><blockquote>' . esc_html( $response->get_error_message() ) . '</blockquote>';
55+
) . '</p>';
5556
return $result;
5657
}
5758

0 commit comments

Comments
 (0)