Skip to content

Commit fd41db1

Browse files
author
Felix Arntz
committed
Add note on hook limitation unless output buffering is enabled.
1 parent 05d849e commit fd41db1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎admin/server-timing.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ static function() {
4747
__( 'For any hook name provided, the <strong>cumulative duration between all callbacks</strong> attached to the hook is measured, in milliseconds.', 'performance-lab' ),
4848
array( 'strong' => array() )
4949
);
50+
if ( ! perflab_server_timing_use_output_buffer() ) {
51+
?>
52+
<br>
53+
<?php
54+
echo wp_kses(
55+
__( 'Since the Server-Timing header is sent before the template is loaded, only hooks before the <code>template_include</code> filter can be measured.', 'performance-lab' ),
56+
array( 'code' => array() )
57+
);
58+
}
5059
?>
5160
</p>
5261
<?php

0 commit comments

Comments
 (0)