We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 86a7776 + 4e83589 commit dcac3baCopy full SHA for dcac3ba
1 file changed
server-timing/class-perflab-server-timing.php
@@ -227,16 +227,11 @@ public function on_template_include( $passthrough = null ) {
227
return $passthrough;
228
}
229
230
- ob_start();
231
- add_action(
232
- 'shutdown',
233
- function() {
234
- $output = ob_get_clean();
+ ob_start(
+ function( $output ) {
235
$this->send_header();
236
- echo $output;
237
- },
238
- // phpcs:ignore PHPCompatibility.Constants.NewConstants
239
- defined( 'PHP_INT_MIN' ) ? PHP_INT_MIN : -1000
+ return $output;
+ }
240
);
241
242
0 commit comments