Skip to content

Commit

Permalink
Inline href attribute in translation string
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Aug 17, 2023
1 parent a02c389 commit 4868823
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions admin/server-timing.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,12 @@ static function() {
<br>
<?php
echo wp_kses(
str_replace(
'<a>',
'<a href="#server_timing_output_buffering">',
sprintf(
/* translators: 1: Server-Timing, 2: template_include */
__( 'Since the %1$s header is sent before the template is loaded, only hooks before the %2$s filter can be measured. Enable <a>Output Buffering</a> to measure hooks during template rendering.', 'performance-lab' ),
'<code>Server-Timing</code>',
'<code>template_include</code>'
)
sprintf(
/* translators: 1: Server-Timing, 2: template_include, 3: anchor link */
__( 'Since the %1$s header is sent before the template is loaded, only hooks before the %2$s filter can be measured. Enable <a href="%3$s">Output Buffering</a> to measure hooks during template rendering.', 'performance-lab' ),
'<code>Server-Timing</code>',
'<code>template_include</code>',
esc_url( '#server_timing_output_buffering' )
),
array(
'code' => array(),
Expand Down

0 comments on commit 4868823

Please sign in to comment.